LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-29-2004, 11:12 PM   #1
jamezdin
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Lightbulb DHCP host (not) resolving trough DNS


I have DHCP router giving IP's based on clients MAC address. When DHCP finds out that client has correct MAC address its tries to resolve its host name trough DNS. The problem is that DHCP doesn't resolve host names trough DNS. DNS is setup correctly. So I'm not sure where the problem is. DNS and DHCP are two different machines on two differnt IPs.

DHCP conf:

host smallfry {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address smallfry.mydomain.com;
}


Maindomain's DNS master db:
smallfry IN A 10.0.0.202

Any suggestions where DHCP might have a problem resolving hostnames? DHCP resolv.conf has correct DNS IP and I don't know where else to look to fix this.

Thanks.
 
Old 05-30-2004, 09:34 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Have you tested the DNS from the dhcp server on the command line? Try:
dig smallfry.mydomain.com A

If this resolves the hostname then dns is working. As another test you may want to try using the IP address in place of smallfry.mydomain.com in the dhcp config to see if the dhcp is working.
 
Old 05-30-2004, 01:27 PM   #3
jamezdin
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
DHCP problems

When I 'dig' host name from other servers I get DNS reply. When I try to dig from DHCP server I get:

laptop.hostname.com does not exist (Authoritative answer)

I looks like DHCP is not talking to DNS properly. I have no idea what to do. resol.conf has the right DNS server in it.

Any suggestions?

Thanks!!
 
Old 05-30-2004, 01:38 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Can you post the contents of:
/etc/resolv.vonf
/etc/host.conf

Can you resolve other dns names such as:
dig www.google.com A
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM
Apache Virtual Host problem - DNS or DHCP issue? costrevs Linux - Software 16 03-23-2005 07:50 AM
DNS resolving problems on clients through DHCP server AddictIT Linux - Networking 7 05-02-2004 04:00 PM
DNS not resolving notes server name and dhcp not releasing leases DanielKwok Linux - Networking 1 02-10-2004 10:04 PM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration