Get DNS automaticly

This is a discussion on Get DNS automaticly within the Linux Networking forums, part of the Linux Forums category; I configure my network interface to use DHCP (Redht Linux 9.0). It does not seem it gets DNS automaticly ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2004
Ask
 
Posts: n/a
Default Get DNS automaticly

I configure my network interface to use DHCP (Redht Linux 9.0). It
does not seem it gets DNS automaticly through DHCP, I have to manualll
configure it. How do I makr it get that automaticly.
When I use windows, if I configure the interface to get IP through
DHCP, it gets DNS automaticly. I guess all this info should be
included in DHCP messages.

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-27-2004
Owen Jacobson
 
Posts: n/a
Default Re: Get DNS automaticly

On Sat, 26 Jun 2004 23:04:28 -0700, Ask wrote:

> I configure my network interface to use DHCP (Redht Linux 9.0). It
> does not seem it gets DNS automaticly through DHCP, I have to manualll
> configure it. How do I makr it get that automaticly.
> When I use windows, if I configure the interface to get IP through
> DHCP, it gets DNS automaticly. I guess all this info should be
> included in DHCP messages.
>
> Thanks


dhcpd.conf:

....
option domain-name-servers 192.168.0.1;
....

Replacing, of course, the IP with the correct IP address of your network's
DNS servers. You can specify more than one; separate them with a space.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Reply With Quote
  #3 (permalink)  
Old 06-27-2004
Ask
 
Posts: n/a
Default Re: Get DNS automaticly

Owen Jacobson <angstrom@lionsanctuary.net> wrote in message news:<pan.2004.06.27.06.49.44.402109@lionsanctuary .net>...
> On Sat, 26 Jun 2004 23:04:28 -0700, Ask wrote:
>
> > I configure my network interface to use DHCP (Redht Linux 9.0). It
> > does not seem it gets DNS automaticly through DHCP, I have to manualll
> > configure it. How do I makr it get that automaticly.
> > When I use windows, if I configure the interface to get IP through
> > DHCP, it gets DNS automaticly. I guess all this info should be
> > included in DHCP messages.
> >
> > Thanks

>
> dhcpd.conf:
>
> ...
> option domain-name-servers 192.168.0.1;
> ...
>
> Replacing, of course, the IP with the correct IP address of your network's
> DNS servers. You can specify more than one; separate them with a space.

My problem is at client site. My PC is dualboot and connect to my home
router.
If I boot into XP, I can check my PC get IP, GW and DNS addresses. NO
problem.

If I boot into linux. The interface is up. But I can not go anywhere
until
I put the the DNS address manually.

Question is of cause why?
question 2 is if there is command equivalent to ipconfig on XP to get
all information the linux get through DHCP protocol?
Reply With Quote
  #4 (permalink)  
Old 06-27-2004
Ask
 
Posts: n/a
Default Re: Get DNS automaticly

Owen Jacobson <angstrom@lionsanctuary.net> wrote in message news:<pan.2004.06.27.06.49.44.402109@lionsanctuary .net>...
> On Sat, 26 Jun 2004 23:04:28 -0700, Ask wrote:
>
> > I configure my network interface to use DHCP (Redht Linux 9.0). It
> > does not seem it gets DNS automaticly through DHCP, I have to manualll
> > configure it. How do I makr it get that automaticly.
> > When I use windows, if I configure the interface to get IP through
> > DHCP, it gets DNS automaticly. I guess all this info should be
> > included in DHCP messages.
> >
> > Thanks

>
> dhcpd.conf:
>
> ...
> option domain-name-servers 192.168.0.1;
> ...
>
> Replacing, of course, the IP with the correct IP address of your network's
> DNS servers. You can specify more than one; separate them with a space.

My problem is at client side. My PC is dualboot connecting to mynhome
router.
if the PC route into XY, everthing working fine. If I boot into linux,
I can not browse anywhere until I manually put in the DNS address.
My question is first why?
My second qustion is if there is equivalent command of ipconfig on XP
on linux
to get information the PC gets from the server.

Always ask.
Reply With Quote
  #5 (permalink)  
Old 06-27-2004
Robert Nichols
 
Posts: n/a
Default Re: Get DNS automaticly

In article <6a8918d.0406262129.31229b25@posting.google.com> ,
Ask <ask8y@yahoo.com> wrote:
:I configure my network interface to use DHCP (Redht Linux 9.0). It
:does not seem it gets DNS automaticly through DHCP, I have to manualll
:configure it. How do I makr it get that automaticly.
:When I use windows, if I configure the interface to get IP through
:DHCP, it gets DNS automaticly. I guess all this info should be
:included in DHCP messages.

Run your network configuration tool (on my Fedora Core 1 system it's
Main Menu -> System Settings -> Network), select your networking device
(if there's more than one), and click on "Edit". In the DHCP settings
you'll find a checkbox for "Automatically obtain DNS information from
provider".

--
Bob Nichols AT comcast.net I am "rnichols42"
Reply With Quote
  #6 (permalink)  
Old 06-27-2004
Bit Twister
 
Posts: n/a
Default Re: Get DNS automaticly

On 27 Jun 2004 07:39:10 -0700, Ask wrote:

> My problem is at client site. My PC is dualboot and connect to my home
> router.
> If I boot into XP, I can check my PC get IP, GW and DNS addresses. NO
> problem.
>
> If I boot into linux. The interface is up. But I can not go anywhere
> until
> I put the the DNS address manually.
>
> Question is of cause why?


Nic not set to get dhcp info?
Firewall set too tight?
dhcp client not installed ?
Any info/errors found with grep dhcp /var/log/messages

> question 2 is if there is command equivalent to ipconfig on XP to get
> all information the linux get through DHCP protocol?


depends on which dhcp client you running.

ps aux | grep dhc
Might return which dhcp client you are running.

If using dhclient
cat /var/lib/dhcp/dhclient-eth0.leases

If using dhcpcd
cat /etc/dhcpc/dhcpcd-eth0.info
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0