Re: DNS lookup fails connecting to server on same network

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Dan Lund
Date:  
To: Main PLUG discussion list
Subject: Re: DNS lookup fails connecting to server on same network
The file shouldn't update on reboot, it should only update when
dhclient (or whatever DHCP client style is used in your distro) snags
an IP and DNS information from the DHCP server. Pretty much that's
what determines what goes into the /etc/resolv.conf.

I mean, you could edit the /etc/dhclient.conf (again, assuming your
using dhclient for DHCP initialization), or just edit the
/etc/resolv.conf, toss it to ./etc/resolv.conf.saved and if it goes
fubar then copy the /etc/resolv.conf.saved to /etc/resolv.conf.
(VERY ad-hoc and amateur but a quick fix)

In theory though, you should be able to bounce between DHCP address
changes network to network without a problem. This is the exception
because DHCP update is causing a problem somehow. The main culprit is
probably one of the router's DNS server address allocations perhaps.

Great I wait until the end of this then read your using Debian. hah...
I forget how that works but if I remember right it uses dhcpcd...

Thanks,
Dan Lund

If you need more than 3 levels of indentation, you're screwed anyway,
and should fix your program.
--Linus Torvalds, Original Inventor of the Linux kernel
August, 2006



On Tue, Nov 4, 2008 at 5:59 AM, Ryan Rix <> wrote:
> Hi,
>
> I commented out the qwest dns servers, and it worked. but this file updates at
> reboot, no?
> Also, about half the time I am behind a dlink router at my ftather's house;
> will this conflict now? if the resolv.conf is edited is it assumed to stay
> after reboot? The dlink's at 192.168.0.1 and the linksys is 192.168.1.1....
> is there any way to use both with one config file, or will it err?
>
> --
> Thanks and best regards,
> Ryan Rix
> TamsPalm - The PalmOS Blog
>
> I support Debian GNU/Linux and KDE as the ultimate desktop environment.
> Why don't you?
>
>
>
>
> On Tue November 4 2008 12:33:11 am Dan Lund wrote:
>> How about what's in your /etc/resolv.conf?
>> maybe the /etc/nsswitch.conf just to make sure nothings odd?
>> It's a start.
>> even try appending a period/dot ( . ) after the name to denote it as a
>> FQDN absolutely.
>>
>> Thanks,
>> Dan Lund
>>
>> If you need more than 3 levels of indentation, you're screwed anyway,
>> and should fix your program.
>> --Linus Torvalds, Original Inventor of the Linux kernel
>> August, 2006
>>
>> On Mon, Nov 3, 2008 at 10:09 PM, Ryan Rix <> wrote:
>> > Hi,
>> >
>> > I have recently configured a new Debian GNU/Linux server and migrated the
>> > settings and stuffs from my old laptopserver.
>> >
>> > Everything works shiningly, except for one thing: when I try to access
>> > the server via its fqdn, my laptop returns a DNS error, unknown host.
>> >
>> > I know that somewhere in the bowels of my laptop, only while connected to
>> > the same network as the server behind a dlink G router, it's becoming
>> > corrupted because:
>> >
>> > maylay:~# nslookup wanton.dyndns.org 205.171.2.65
>> > Server:         205.171.2.65
>> > Address:        205.171.2.65#53

>> >
>> > Non-authoritative answer:
>> > Name: wanton.dyndns.org
>> > Address: 204.193.219.193
>> >
>> > where 205.11.2.65 is the primary dns reported by the router. The address
>> > it pulls is valid, indeed.
>> >
>> > maylay:~# nslookup wanton.dyndns.org
>> > Server:         192.168.0.1
>> > Address:        192.168.0.1#53

>> >
>> > Non-authoritative answer:
>> > Name: wanton.dyndns.org
>> > Address: 204.193.219.193
>> >
>> > using the router for DNS reports the same IP address, leading me to
>> > believe the laptop is corrupting or doing *SOMETHING* to prevent a
>> > connection.
>> >
>> > My hosts file is clean:
>> > 127.0.0.1 localhost
>> >
>> > I think that would be the only thing prohibiting a connection on the
>> > laptop, so I honestly am at a loss of what to do.
>> >
>> > Any ideas are much appreciated.
>> > ~Ryan
>> >
>> >
>> > --
>> > Thanks and best regards,
>> > Ryan Rix
>> > TamsPalm - The PalmOS Blog
>> >
>> > "See, he's more dangerous during the off season"
>> >
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------
>> > PLUG-discuss mailing list -
>> > To subscribe, unsubscribe, or to change your mail settings:
>> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list -
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss