Re: DHCP & DNS [OT]
by Steve Blackwell
As promised, here are the results of my experiments on putting a DNS server on my Linksys router.
After a little research I found the DD-WRT project (http://www.dd-wrt.com/) which looked like it would do what I wanted by using the DNS forwarder (DNSmasq) feature.
A quick read of the documentation makes you very aware of the term "bricking" your router, ie flashing the router firmware incorrectly, thereby totally and possibly irrecoverably breaking it. So after a second, thorough read of the documentation, taking the precautions of noting all of the current settings of the router and copying the online instructions to local files, I sucessfully flashed the router with the mini version of the DD-WRT firmware. There are warnings about only using IE to upgrade from the original Linksys firmware. The warnings may be out of date now, but I heeded them anyway. Once the DD-WRT firmware is installed, any browser can be used for futher upgrades. I got a scare at first because I couldn't log in to the router after I had upgraded. Then I remembered, that DD-WRT uses root as the default login instead of nothing.
Next, I configured the router according to my old settings and activated DNSmasq. Everything appeared to be working correctly. I could browse the internet from both my Fedora box and the Vista box. I could also ping the Vista box or the router from the Fedora box just by typing 'ping Vista' or ping DD-WRT.
I did manage to screw someyhing up while I was feeling very pleased with myself and poking around the various screens. The router somehow lost the host name of my Fedora box and I could no longer ping myself. I tried restarting networking, rebooting the router and rebooting the Fedora box with no luck. Eventually, I was able to get it back by creating a dhclient.conf file and putting a send hostname clause it in. It still worked when I deleted the dhclient file, so I don't really know what was happening there.
Now the only remaining problem was that the Windows box could not ping either itself, the router or the Fedora box. I found the answer in the DNSmasq FAQ. Apparently, Windows machines do not use DNS when looking up machine names that don't contain a '.', they just try to use WINS. This can be verified by typing 'ping my_local_machine' which will fail and 'ping my_loca_machine.' which suceeds. The solution is to set a domain name in the DHCP server and use the domain-required and expand-hosts options. The Windows machine must also be set up to use 'mydomain' DNS suffix for this connection. Now, when I type 'ping DD_WRT' from either the Fedora box or the Windows box, I get a response from host.mydomain. Here is the windows results:
C:\> ping DD-WRT
pinging DD-WRT.mydomain [192.168.1.1] with 32 bytes of data :
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.1.1 :
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip time in ms:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
Now the only problem left, and it's not really a problem, just a curiousity, is that the Windows box cannot ping itself. I might try to update to the standard version of the firmware next weekend.
If anybody would like more details, just let me know.
Steve
---- zephod(a)cfl.rr.com wrote:
> It seems like the solution is to set up a local DNS server on the same machine as the the DHCP server. Some people suggested putting the DHCP server on the Fedora box but it is usually not on during the day which would be a problem for the Windows box which usually is. I'm going to do a little research and see if I can put a DNS server on the Linksys.
>
> Thanks to all who responded on this. I'll report back on my progress.
>
> Steve
>
> ---- Adalbert Prokop <adalbert.prokop(a)gmx.de> wrote:
> > zephod(a)cfl.rr.com wrote on Sunday 21 October 2007:
> >
> > > Here is my simple and, I suspect, very common setup: 2 PCs, one FC6
> > > Linux, one Windows Vista and a Linksys wireless router. A DHCP server
> > > on the Linksys determines the IP addresses of the 2 machines.
> >
> > > My question is: is it possible for either machine to ping the other
> > > without having to make an entry in its local hosts file?
> >
> > At least not only with DHCP. It is only for assigning IP addresses and
> > parameters to network devices. If you want name-to-address resolving you
> > need (an internal) DNS server. That could be your Linksys router. I don't
> > know if the original firmware has a DNS server, but WRT54G is flashable.
> > That means you can install a small Linux distro on it and within a DNS
> > server (dnsmasq or bind or ...). Look here
> >
> > http://www.freewrt.org/trac/wiki/Documentation/TargetSystems
> >
> > If you cannot use a DNS server you could use Bonjour/Zeroconf for address
> > resolving. Apples Bonjour is available for Windows and Linux has its own
> > implementations of the mDNS (multicast DNS) protocoll, e.g. mDNSresponder
> > or avahi. mDNS is simmilar to DNS but it does not need a central server
> > because every machine is sending broadcast messages on the network
> > announcing itself to its neighbours. With help of the nss-mdns package
> > you can then resolve the broadcasted names to IP addresses.
> >
> > For a small office the DHCP/DNS solution is the preferable one.
> >
> > --
> > bye,
> > Adalbert
16 years, 6 months
Problems viewing .asp files
by Howard Howell
Hi, everyone,
I am having problems viewing ".asp" files. I don't get any errors in
logs or on screen, when I try to open them I get the message
"unrecognized file type".
I have googled, and searched the mailing list but didn't see anything
that would help. I did try removing and reinstalling python which was
the only suggestion I found that might apply, but that didn't help.
Can anyone point me to a reference of troubleshooting this issue or
know the fix?
Regards,
Les H
16 years, 6 months
is this hardware failure ??
by Gregory Machin
Hi my server hung, and when I checked the logs there's lots of nasty
looking entries ... Are these hardware failure and if so what hardware
?
Oct 31 15:44:47 server kernel: ata1.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:47 server kernel: ata1.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:47 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:47 server kernel: ata1.00: configured for UDMA/133
Oct 31 15:44:47 server kernel: ata1: EH complete
Oct 31 15:44:47 server kernel: ata1.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:47 server kernel: ata1.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:47 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:47 server kernel: ata1.00: configured for UDMA/133
Oct 31 15:44:47 server kernel: ata1: EH complete
Oct 31 15:44:48 server kernel: ata1.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:48 server kernel: ata1.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:48 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:48 server kernel: ata1.00: configured for UDMA/133
Oct 31 15:44:48 server kernel: ata1: EH complete
Oct 31 15:44:48 server kernel: ata1.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:48 server kernel: ata1.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:48 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:48 server kernel: ata1.00: configured for UDMA/133
Oct 31 15:44:48 server kernel: ata1: EH complete
Oct 31 15:44:48 server kernel: ata1.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:48 server kernel: ata1.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:48 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:48 server kernel: ata1.00: configured for UDMA/133
Oct 31 15:44:48 server kernel: ata1: EH complete
Oct 31 15:44:49 server kernel: ata1.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:49 server kernel: ata1.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:49 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:49 server kernel: ata1.00: configured for UDMA/133
Oct 31 15:44:49 server kernel: ata1: EH complete
Oct 31 15:44:49 server kernel: sd 0:0:0:0: [sda] 488397168 512-byte
hardware sectors (250059 MB)
Oct 31 15:44:49 server kernel: sd 0:0:0:0: [sda] Write Protect is off
Oct 31 15:44:49 server kernel: sd 0:0:0:0: [sda] Write cache: enabled,
read cache: enabled, doesn't support DPO or FUA
Oct 31 15:44:49 server kernel: sd 0:0:0:0: [sda] 488397168 512-byte
hardware sectors (250059 MB)
Oct 31 15:44:49 server kernel: sd 0:0:0:0: [sda] Write Protect is off
Oct 31 15:44:49 server kernel: sd 0:0:0:0: [sda] Write cache: enabled,
read cache: enabled, doesn't support DPO or FUA
Oct 31 15:44:49 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:49 server kernel: ata2.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:49 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:49 server kernel: ata2.00: configured for UDMA/133
Oct 31 15:44:49 server kernel: ata2: EH complete
Oct 31 15:44:51 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:51 server kernel: ata2.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:51 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:51 server kernel: ata2.00: configured for UDMA/133
Oct 31 15:44:51 server kernel: ata2: EH complete
Oct 31 15:44:51 server kernel: Removing netfilter NETLINK layer.
Oct 31 15:44:51 server kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Oct 31 15:44:51 server kernel: Netfilter messages via NETLINK v0.30.
Oct 31 15:44:51 server kernel: nf_conntrack version 0.5.0 (8192
buckets, 65536 max)
Oct 31 15:44:51 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:51 server kernel: printk: 11 messages suppressed.
Oct 31 15:44:51 server kernel: martian source 192.168.1.196 from
192.168.200.240, on dev eth1
Oct 31 15:44:51 server kernel: ll header:
00:13:46:3b:82:23:00:30:94:e2:8d:00:08:00
Oct 31 15:44:51 server kernel: ata2.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:51 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:51 server kernel: ata2.00: configured for UDMA/133
Oct 31 15:44:51 server kernel: ata2: EH complete
Oct 31 15:44:51 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:51 server kernel: ata2.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:51 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:51 server kernel: ata2.00: configured for UDMA/133
Oct 31 15:44:51 server kernel: ata2: EH complete
Oct 31 15:44:51 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:51 server kernel: ata2.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:51 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:51 server kernel: ata2.00: configured for UDMA/133
Oct 31 15:44:51 server kernel: ata2: EH complete
Oct 31 15:44:51 server kernel: ata2.00: exception Emask 0x0 SAct 0x0
SErr 0x0 action 0x0
Oct 31 15:44:51 server kernel: ata2.00: cmd
b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
Oct 31 15:44:51 server kernel: res
51/04:00:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
Oct 31 15:44:51 server kernel: ata2.00: configured for UDMA/133
Oct 31 15:44:51 server kernel: ata2: EH complete
Oct 31 15:44:51 server kernel: sd 1:0:0:0: [sdb] 488397168 512-byte
hardware sectors (250059 MB)
Oct 31 15:44:51 server kernel: sd 1:0:0:0: [sdb] Write Protect is off
Oct 31 15:44:51 server kernel: sd 1:0:0:0: [sdb] Write cache: enabled,
read cache: enabled, doesn't support DPO or FUA
Oct 31 15:44:51 server kernel: sd 1:0:0:0: [sdb] 488397168 512-byte
hardware sectors (250059 MB)
Oct 31 15:44:51 server kernel: sd 1:0:0:0: [sdb] Write Protect is off
Oct 31 15:44:51 server kernel: sd 1:0:0:0: [sdb] Write cache: enabled,
read cache: enabled, doesn
--
Gregory Machin
gregory.machin(a)gmail.com
www.linuxpro.co.za
16 years, 6 months
/etc/prelink.cache
by Dave Burns
I have aide, a file integrity monitor, watching the files on one of my
boxes. It recently reported a change to /etc/prelink.cache.
I am tempted to think that this file, being a cache, will tend to
change without any reason obvious to me.
And so it seems to me that I will get lots of false alarms and the
only small amount of good it might accomplish is that if I ever have a
real intrusion using that file it will provide a small but
inconclusive clue.
So I am tempted to reconfigure aide to ignore that file. Is this a bad
idea? Are changes to this file more predictable than I am supposing?
Thanks,
Dave
16 years, 6 months
bash question
by Dario Lesca
In this shell script:
> #!/bin/bash
> i=0
>
> printf "a a a\nb b b\nc c c\n" |
> while read x
> do
> i=$[i+1]
> echo "$x: ($i)"
> done
>
> echo $i
with this output:
> a a a: (1)
> b b b: (2)
> c c c: (3)
> 0
How to I can get the value (3) for $i out of the while loop?
Many thanks
--
Dario Lesca <d.lesca(a)solinos.it>
16 years, 6 months
Loading pirut hangs
by Chris G
When I try and load pirut it just hangs after 'Loading "installonlyn"
plugin' appears.
It certainly used to work, what's up?
--
Chris Green
16 years, 6 months
mounting with "noatime"
by Miner, Jonathan W (US SSA)
What are peoples' opinions on mounting OS partitions with the "noatime" option?
The recent conversations about flash drive lifetimes, and harddrives wearing out on laptops got me thinking whether or not I really cared about when I was accessing OS files on my laptop. Barring the potential forensic value of knowing when a file was accessed, I don't think I care. However for the partition with my $HOME, I do care since I like to be able to occasionally delete all the stuff I haven't accessed in the last six months (for example).
Comments?
16 years, 6 months
Package installation configuration corrupted
by Sid Tupper
I installed Fedora 7 a few days ago. I'm sure other Linux newbies do wild
and crazy things and get into trouble too, but I'm not sure what I did to
deserve this .
Since yesterday when I try to install software with rpm, a blank message box
comes up titled "installing packages", which before as I recall presented
information about the installation but now just stays blank FOR A LONG TIME
(30 minutes?). The first time it happened I got an interesting dump, which
I've appended below. Subsequently after similar attempts a message box
comes up saying "Config error. Unable to start due to a configuration
error." There's a link to details, which turns out to be "None".
If I use the Add/Remove Software menu item, nothing happens, except a dialog
for the root password. After an age, I get the unhelpful problem message.
I booted with the distribution DVD and chose the "upgrade" option (which
promises not to delele my files) hoping that it would overwrite whatever has
gone wrong with good stuff. No such luck.
I'd really apppreciate some hints about how to proceed.
Thanks
Sid
Component: pirut
Summary: TB11af5ff9 grabber.py:1219:_do_grab:OSError: [Errno 2] No such file
or directory: '//var/cache/yum/fedora/primary.sqlite.bz2'
Traceback (most recent call last):
File "/usr/sbin/pirut", line 441, in <module>
main()
File "/usr/sbin/pirut", line 434, in main
pm = PackageManager(options.config, options.onlyrepo)
File "/usr/sbin/pirut", line 61, in __init__
GraphicalYumBase.__init__(self, False, config)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 124, in
__init__
self.reset()
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 223, in
reset
self.doTsSetup()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 63, in
doTsSetup
return self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 77, in
_getTs
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 526, in
<lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 381, in
_getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 242, in
populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 151, in
populate
db_fn = repo.retrieveMD(mydbtype)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 855, in
retrieveMD
cache=self.http_caching == 'all')
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 618, in
_getFile
http_headers=headers,
File "/usr/lib/python2.5/site-packages/urlgrabber/mirror.py", line 411, in
urlgrab
return self._mirror_try(func, url, kw)
File "/usr/lib/python2.5/site-packages/urlgrabber/mirror.py", line 397, in
_mirror_try
return func_ref( *(fullurl,), **kwargs )
File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 927,
in urlgrab
return self._retry(opts, retryfunc, url, filename)
File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 845,
in _retry
r = apply(func, (opts,) + args, {})
File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 915,
in retryfunc
fo._do_grab()
File "/usr/lib/python2.5/site-packages/urlgrabber/grabber.py", line 1219,
in _do_grab
os.utime(self.filename, (modified_stamp, modified_stamp))
OSError: [Errno 2] No such file or directory:
'//var/cache/yum/fedora/primary.sqlite.bz2'
Local variables in innermost frame:
self: <urlgrabber.grabber.URLGrabberFileObject instance at 0xfc2998>
amount: None
modified_stamp: 1183492954.0
new_fo: <closed file '//var/cache/yum/fedora/primary.sqlite.bz2', mode 'wb'
at 0xfb67b0>
bs: 8192
modified_tuple: (2007, 7, 3, 20, 2, 34, 0, 1, 0, 0)
ValueError: unpack non-sequence
block:
size: 4955910
16 years, 6 months
To remain in summer time.
by Strong
Is it possible to remain system's time in the summer time for now even
though I use ntping for sync.? I would not to change the time whole
year long on my laptop. How I can do that?
16 years, 6 months
OT? Where to get a blue Fedora??
by Beartooth
I thought I had seen a Fedora Store somewhere; but searching on
that phrase is hopeless. So is googling (advanced) for "blue fedora" :
there is one, but it's pale blue. Where can I get the real thing?
--
Beartooth Staffwright, PhD, Neo-Redneck Linux Convert
Remember I know precious little of what I am talking about.
16 years, 6 months