LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP server not resolving address (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-server-not-resolving-address-238943/)

netguy2000 10-05-2004 03:36 AM

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;
}
}


:Pengy: :scratch: :study: :confused:

nordickiwi 10-05-2004 05:57 AM

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

netguy2000 10-06-2004 01:53 AM

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.

nordickiwi 10-06-2004 02:22 PM

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.

netguy2000 10-07-2004 01:20 AM

I want that my own network users can resolve their network Pc's name also.
what to do plzz help me.

Rizwan.

nordickiwi 10-07-2004 03:17 AM

/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.

netguy2000 10-07-2004 04:19 AM

I have windows 2000, XP and 98 users, please help me to setup them for this.
Thanks in advance.
Rizwan.


All times are GMT -5. The time now is 05:13 PM.