Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2005, 10:43 AM
|
#1
|
Member
Registered: Jan 2005
Location: Venezuela
Distribution: Ubuntu 5.10 64bits
Posts: 81
Rep:
|
SOLVED! NSlookup fails, DDNS & DHCP
I have a Fedora Core 3 DDNS DHCP Server, it seems to be working fine, because every body can go around the network useing the dns names, but when I try to do a nslookup from any Windows or Mac OS X machine I get:
c:\> $ nslookup linux
*** Can't find server name for address 192.168.0.1: Server failed
*** Can't find server name for address 192.168.0.2: Non-existent domain
*** rs26s16.datacenter.cha.cantv.net can't find linux: Non-existent domain
Server: rs26s16.datacenter.cha.cantv.net
Address: 200.44.32.12
192.168.0.1 is my DNS server.
The last DNS server is the one from my ISP.
But if a try nslookup from a Linux machine I get the proper answer I'm looking for.
I also get messages like these ones:
Quote:
unable to add reverse map from 184.0.168.192.in-addr.arpa. to WORKSTATION2.key2server.local: timed out: 1 Time(s)
|
Quote:
can't remove reverse map on 226.0.168.192.in-addr.arpa.: timed out: 1 Time(s)
|
Quote:
Zone update refused:
192.168.0.2 (key2server.local/IN): 162 Time(s)
|
named.conf:
Quote:
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
//query-source address * port 53;
forward only;
forwarders {
200.44.32.12;
200.44.32.13;
};
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
inet 192.168.0.1 allow { localhost; } keys { rndckey; };
};
key ddns-key {
algorithm hmac-md5;
secret "somerandomstring";
};
include "/etc/rndc.key";
view "internal" {
zone "." IN {
type hint;
file "named.ca";
};
zone "serveftp.net" {
type master;
file "/var/named/serveftp.net.hosts";
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update {
none;
};
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update {
none;
};
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update {
none;
};
};
zone "0.168.192.in-addr.arpa" {
type master;
file "key2server.rev";
allow-update {
key ddns-key;
};
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update {
none;
};
};
zone "key2server.local" {
type master;
file "key2server.zone";
allow-update {
key ddns-key;
};
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update {
none;
};
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update {
none;
};
};
zone "edunet.local" {
type master;
file "/var/named/edunet.local.hosts";
allow-update {
key ddns-key;
};
};
};
|
-----------------------------------
dhcpd.conf
Quote:
authoritative;
allow unknown-clients;
ddns-update-style interim;
ddns-updates on;
update-static-leases on;
ignore client-updates;
# Don't allow clients to update DNS, make the server do it
# based on the hostname passed by the DHCP client:
deny client-updates;
key ddns-key {
algorithm hmac-md5;
secret "somerandomstring";
}
zone key2server.local. {
primary 127.0.0.1;
key ddns-key;
}
zone edunet.local. {
primary 127.0.0.1;
key ddns-key;
}
zone 0.168.192.in-addr.arpa. {
primary 127.0.0.1;
key ddns-key;
}
# Laplana Network
shared-network LAPLANA {
allow unknown-clients;
# Edunet
subnet 192.168.0.0 netmask 255.255.255.0 {
allow unknown-clients;
ddns-updates on;
option domain-name "key2server.local";
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1, 192.168.0.2, 200.44.32.12, 200.44.32.13;
option ip-forwarding off;
default-lease-time 21600;
max-lease-time 43200;
range 192.168.0.25 192.168.0.254;
}
}
|
What may I be doing wrong??
Last edited by HellSpawn; 04-25-2005 at 12:55 PM.
|
|
|
04-15-2005, 08:32 AM
|
#2
|
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019
Rep:
|
*** Can't find server name for address 192.168.0.1:
It tried to do a query of a reverse DNS lookup of 192.168.0.1 and failed. Look into setting up reverse DNS for BIND. I'm sure a google search will get you started on how to set that up.
|
|
|
04-25-2005, 12:54 PM
|
#3
|
Member
Registered: Jan 2005
Location: Venezuela
Distribution: Ubuntu 5.10 64bits
Posts: 81
Original Poster
Rep:
|
Solved!!
Yeap.. that was right benjithegreat98, I solved it stoping BIND, deleting the journal files and restartint BIND (named)...
Thanks!!
|
|
|
03-22-2007, 03:04 AM
|
#4
|
LQ Newbie
Registered: Mar 2007
Posts: 2
Rep:
|
guide me
Quote:
Originally Posted by HellSpawn
Yeap.. that was right benjithegreat98, I solved it stoping BIND, deleting the journal files and restartint BIND (named)...
Thanks!!
|
Hey, can you help me, how did you do that? please..............
|
|
|
03-30-2007, 10:59 AM
|
#5
|
Member
Registered: Jan 2005
Location: Venezuela
Distribution: Ubuntu 5.10 64bits
Posts: 81
Original Poster
Rep:
|
Quote:
Originally Posted by chockalingam
Hey, can you help me, how did you do that? please..............
|
Look for those files on your /etc/named or /var/lib/named .... stop BIND, delete the files and restart BIND.
|
|
|
04-05-2007, 10:02 PM
|
#6
|
LQ Newbie
Registered: Mar 2007
Posts: 2
Rep:
|
Quote:
Originally Posted by HellSpawn
Look for those files on your /etc/named or /var/lib/named .... stop BIND, delete the files and restart BIND.
|
I do not see any journal files for named in the path above.
Can you please get me the name of the file, it would be, for me to check the whole system.
|
|
|
04-06-2007, 08:45 AM
|
#7
|
Member
Registered: Jan 2005
Location: Venezuela
Distribution: Ubuntu 5.10 64bits
Posts: 81
Original Poster
Rep:
|
Quote:
Originally Posted by chockalingam
I do not see any journal files for named in the path above.
Can you please get me the name of the file, it would be, for me to check the whole system.
|
So you want me to go there and do the job for you too?? You can Google it....
Look for files with .jnl extensions, you can RTFM
|
|
|
04-06-2007, 08:50 AM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
chockalingam, please don't drag up old threads. this hadn't been touched for nearly 2 years! If you have a problem you then you should start a thread for yourself. try that next time... (not this time...)
HellSpawn, please play a little nicer next time, ehh?
|
|
|
All times are GMT -5. The time now is 08:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|