Networking Forums

Networking Forums > Computer Networking > Linux Networking > Get DNS automaticly

Reply
Thread Tools Display Modes

Get DNS automaticly

 
 
Ask
Guest
Posts: n/a

 
      06-27-2004, 06:04 AM
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
 
 
 
 
Owen Jacobson
Guest
Posts: n/a

 
      06-27-2004, 06:49 AM
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
 
Ask
Guest
Posts: n/a

 
      06-27-2004, 02:39 PM
Owen Jacobson <(E-Mail Removed)> 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
 
Ask
Guest
Posts: n/a

 
      06-27-2004, 02:45 PM
Owen Jacobson <(E-Mail Removed)> 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
 
Robert Nichols
Guest
Posts: n/a

 
      06-27-2004, 03:44 PM
In article <(E-Mail Removed)> ,
Ask <(E-Mail Removed)> 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
HCP, 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
 
Bit Twister
Guest
Posts: n/a

 
      06-27-2004, 04:28 PM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't get my wireless to automaticly connect Lloyd Wireless Networks 5 09-13-2007 03:36 AM



1 2 3 4 5 6 7 8 9 10 11