Linux - NetworkingThis 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.
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.
Hi there my dns server before respons to the request he searchs for a pc with ip address 192.168.64.254 . In my network nowhere exists such an ip. I think that the last ip address of a network by default is given to a dns server ..... so i was wondering why my dns server is searching for another den server? After a lot of arp messages my dns server replies to the client.
Do u know any forum for dns in order to ask some things?
Thx guys
There are many possible reasons and it's hard to answer without knowing more. Some ideas:
1) Check the DNS configuration (if you're using named look into named.conf and files mentioned inside). Maybe there's an old entry with such IP?
2) Maybe it's the client asking for the IP by mistake? Maybe the client is not configured properly? Maybe the IP was in use before?
3) Run tcpdump or a similar tool (I understand you have already done it) and see if the client asks about the IP. Does it?
1) Check the DNS configuration (if you're using named look into named.conf and files mentioned inside). Maybe there's an old entry with such IP?
Reply: I installed the named from the beggining. Nowhere tells something about this address.
2) Maybe it's the client asking for the IP by mistake? Maybe the client is not configured properly? Maybe the IP was in use before?
Reply: Never before, because i installed from the beggining my home network with its clients
3) Run tcpdump or a similar tool (I understand you have already done it) and see if the client asks about the IP. Does it?
Reply: I will do it when i ll go home. Till then i was wondering if i must search all the file for the ip 192.168.64.254 . If i ll find some, then i can probably find out the problem.
I was thinking that redhat 8.0 has by default some network files so it must be a malfuntion of the distribution... any other idea will real help
//Startup file for bind 8 and later
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* 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;
};
//
// a caching only nameserver config
//
zone "palaios.gr"{
type master;
file "db.palaios";
};
zone "64.168.192.in-addr.arpa" in {
type master;
file "db.192.168.64";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "db.127.0.0";
};
zone "." in {
type hint;
file "db.cache";
};
The DNS configurations looks good.
If I remember correctly, x.x.x.254 may be a default choice for default gateway. Look how your 'route' result say. If there's the address somewhere, you probable need to change it. On the other way, it's rathere not the server, because I understand you have the Net access.
I highly recommend you to run tcpdump and find out which hosts starts using the strange IP.
first of all thx a lot about your interest. I found the /etc/sysconfig/network file which has a value 192.168.64.254. So i change this ip address to the machines ip. Is this right or what will the right be?
The problem has complettely transformed now . The dns no more asks about the 192.168.64.254. address but for a whole other completely wrong considering my network.
For example dns sends broadcast message for the following ips?
Who has the ip address 194.123.56.12
Who has the ip address 213.112.54.36
................................
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
It sounds like something is not right with the routing. You should not be sending arp requests for non-local IPs. You should have a route for 192.168.64.0/24 as directly connected via one of your ethernet interfaces. Default (0.0.0.0/0) should point at your first hop towards the Internet (first hop after your external ethernet interface).
What's the output of netstat -nra
?
PS based on the problem you're having, I think the 192.168.64.254 address was probably listed as your "gateway" address. That's why it was trying to find that IP before and that's why it's now trying to send arp requests for non-local addresses. If your machine now thinks that it's own IP is the default gateway, it's going to treat any IP as directly connected. You should change that value in /etc/sysconfig/network to be whatever your default gateway is (the inside IP of your cable modem/DSL router, etc).
You need to fill the GATEWAY line with the right default gateway for your network. You should know it. If not, it should be in your other machines configuration. Usually it's IP of the router you have your Internet connection plugged into.
If you look your named.conf your will see the following zones:
zone "palaios.gr"{
type master;
file "db.palaios";
};
zone "64.168.192.in-addr.arpa" in {
type master;
file "db.192.168.64";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "db.127.0.0";
};
zone "." in {
type hint;
file "db.cache";
};
The first zone should be your domain zone, if you try to look for something like "mycomp.palaios.gr" the file "db.palaios" will be traversed so that the correct IP can be taken. It's a direct mapping.
The second one is searched when your try something like "ping 192.168.64.1" and will give to you the hostname.domain of the IP you gave. The file is "db.192.168.64" and in this case is a reverse mapping.
After that, is just your computer itself.
And the last one is searched when no other zone was defined. The db.cache has most common internet name/IPs.
Thx. My network is a home small network with 3 pcs. No router is available. The dns server is not connected with the internet. So what i must enter for the gateway. I think that <blank> is the best choice. Isn't it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.