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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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? |
|
|||
|
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. |
|
|||
|
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" |
|
|||
|
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 |