LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-05-2004, 03:36 AM   #1
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Rep: Reputation: 15
Question DHCP server not resolving address


Dear all, Welcome again.
I have a problem in configuring DHCP server in Redhat 9, using dhcp rpm dhcp-3.0pl1-23, all is working fine (I think so ). The problem I face is my client obtain IP from DHCP server but when I run "nslookup" command from client or "dig" from DHCP server both unable to resolve DNS server name. and also unable to resolve any client name. I dont know what is happening.. I uninstall bind rpm and bind-devel rpm from DHCP server only bind -util rpm is installed in DHCP server.. also no error in my messege log fine when I ran nslookup from client pc or from DHCP server.
My nslookup command gives me this error.

c:\> nslookup
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 192.168.1.2: Timed out
*** Default servers are not available
Default Server: UnKnown
Address: 192.168.1.2


THIS IS MY "dhcpd.conf" file.

ddns-update-style interim;
ignore client-updates;

# My domain DHCP server
subnet 192.168.1.0 netmask 255.255.255.0 {
ddns-updates on;
ddns-domainname "dhcpserver.mydomain.com";
ddns-rev-domainname "in-addr.arpa.";
option routers 192.168.1.2;
option subnet-mask 255.255.255.0;
option domain-name "dhcpserver.mydomain.com";
option domain-name-servers 192.168.1.2;
option broadcast-address 192.168.1.255;
option ip-forwarding on;
option netbios-name-servers 192.168.1.2;
range dynamic-bootp 192.168.1.10 192.168.1.150;
default-lease-time 86400;
# we want the nameserver to appear at a fixed address
host funpc {
option host-name "funpc.mydomail.com";
hardware ethernet 00:A0:2R:XC:2C:32;
fixed-address 192.168.1.2;
deny unknown-clients;
}
}


 
Old 10-05-2004, 05:57 AM   #2
nordickiwi
Member
 
Registered: Oct 2004
Location: Stockholm Sweden
Distribution: Fedora 1-8,Familiar v0,7.2, Redhat 9.0, Knoppix, CentOS, Windows 2003,2000,XP,98,95, Exc
Posts: 39

Rep: Reputation: 15
Do you have a DNS server on your network?

If so you have to have it's address here,

option domain-name-servers 192.168.1.2;

Obviously you don't have a DNS with IP 192.168.0.2 because it is this address nslookup is trying to ask for the information in you request.

Otherwise I think you can write a extern DNS address here and then all DHCP clients on you net work will recieve this information.

/nordickiwi
 
Old 10-06-2004, 01:53 AM   #3
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Original Poster
Rep: Reputation: 15
yes I dont have any DNS server in my network, Its means I have to install bind rpm's in my DHCP server so users can user nslookup??
and do I have to configure DNS zone files also for my network or just create them and DHCP automatically update them??

Thanks for your help in advance.

Rizwan.
 
Old 10-06-2004, 02:22 PM   #4
nordickiwi
Member
 
Registered: Oct 2004
Location: Stockholm Sweden
Distribution: Fedora 1-8,Familiar v0,7.2, Redhat 9.0, Knoppix, CentOS, Windows 2003,2000,XP,98,95, Exc
Posts: 39

Rep: Reputation: 15
you should be able to add your local ISP's DNS's IP in

option domain-name-servers x.x.x.x;

in your dhcpd.conf, then you don't have to install bind. Just make sure that this DHCP server isn't giving out adresses to the internet in anyway. Then your ISP will not be happy with you.
 
Old 10-07-2004, 01:20 AM   #5
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Original Poster
Rep: Reputation: 15
I want that my own network users can resolve their network Pc's name also.
what to do plzz help me.

Rizwan.
 
Old 10-07-2004, 03:17 AM   #6
nordickiwi
Member
 
Registered: Oct 2004
Location: Stockholm Sweden
Distribution: Fedora 1-8,Familiar v0,7.2, Redhat 9.0, Knoppix, CentOS, Windows 2003,2000,XP,98,95, Exc
Posts: 39

Rep: Reputation: 15
/etc/hosts

depending on how many pc's your talking about you could use this file on each pc instead of installing a DNS locally.
 
Old 10-07-2004, 04:19 AM   #7
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Original Poster
Rep: Reputation: 15
I have windows 2000, XP and 98 users, please help me to setup them for this.
Thanks in advance.
Rizwan.
 
  


Reply



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
DHCP Server address srbbabu Linux - Networking 1 11-05-2005 09:33 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 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
dhcp server address manthram Linux - Networking 1 07-12-2002 03:09 PM

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

All times are GMT -5. The time now is 11:14 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
Open Source Consulting | Domain Registration