Home computickets Incorrectly resolves the name

Incorrectly resolves the name

Author

Date

Category

set up bind on its server for this instructions

At first everything was fine, but then stopped working normally. Now, when I do Ping – I says that the domain lies with me locally, that is, gives 127.0.0.1.

In the domain browser opens, but not the page, which lies on the server, simply empty

I open on your laptop.

Content file /etc/resolv.conf


# Mac OS X Notice
#
# THIS FILE IS NOT USED by The Host Name and Address Resolution
# Or The Dns Query Routing Mechanisms Used by Most Proceses ON
# THIS Mac OS X System.
#
# This file is automatically generated.
#
NameServer 192.168.0.1

file / etc / hosts too big, but there is definitely no my domain nor IP address

Running on the TCPDUMP -NN ‘Port 53’ server I get

tcpdump: verbose output suppressed, USE -v or -vv for full protocol decode
Listening On Eth0, Link-Type EN10MB (Ethernet), Capture Size 262144 Bytes
13: 32: 20.573548 IP 74.125.46.5.60391 & gt; 5.9.39.171.53: 36322 [1AU] AAAA? w4u.com.ua. (50)
13: 32: 20.573740 IP 5.9.39.171.53 & gt; 74.125.46.5.60391: 36322 * 0/1/1 (85)
13: 32: 21.054549 IP 74.125.46.7.48455 & gt; 5.9.39.171.53: 3169 [1AU] MX? w4u.com.ua. (50)
13: 32: 21.054743 IP 5.9.39.171.53 & gt; 74.125.46.7.48455: 3169 * 0/1/1 (85)
13: 33: 03.815489 IP 74.125.46.11.63214 & gt; 5.9.39.171.53: 16086 [1AU] AAAA? w4u.com.ua. (39)
13: 33: 03.815678 IP 5.9.39.171.53 & gt; 74.125.46.11.63214: 16086 * 0/1/1 (85)
13: 33: 03.937458 IP 74.125.46.10.34917 & gt; 5.9.39.171.53: 60364 [1AU] MX? w4u.com.ua. (50)
13: 33: 03.937631 IP 5.9.39.171.53 & gt; 74.125.46.10.34917: 60364 * 0/1/1 (85)
13: 33: 26.736812 IP 5.9.39.171.10641 & gt; 8.8.8.8.53: 58998 +% [1AU] PTR? 188.198.175.61.in-addr.arpa. (56)
13: 33: 26.751585 IP 8.8.8.8.53 & gt; 5.9.39.171.10641: 58998 NXDOMAIN 0/1/1 (113)

Running a team on a laptop Host W4u.com.ua I get

w4u.com.ua has address 127.0.0.1

Although running the command on another server received the correct IP


Answer 1, Authority 100%

set up bind on your server

t. e. Bind on a separate server, not on the same machine, where do Ping come from?
Check out the operation in this way:

dig @ & lt; address_server_s_bind & gt; & lt ;_name & gt; Any.

t. e., For example, so:

dig @ 8.8.8.8 ya.ru Any

If you need what you need – it means Bind himself works. It is possible that your computer simply does not apply to the server where Bind is located. In this case, you should check the parameters in the /etc/resolv.conf file. As well as / etc / hosts.

Use the TCPDUMP to make sure that you get the answer from your DNS:

tcpdump -nn '(src iP_B_DNS or DST IP_B_DNS) and port 53'

Run in the next host w4u.com.ua in the next console and see if there will be a package exchange with your server. You can cut to such a form:

tcpdump -nn 'port 53'

What to see with whom your computer communicates.


Answer 2

Main : To the Server mentioned, the problem described has nothing to do with any relationship.


open on your laptop.
Content file /etc/resolv.conf
192.168.0.1
Running a team on a laptop Host W4u.com.ua I get
W4U.com.ua Has Address 127.0.0.1

Most likely, it is the server name on the machine 192.168.0.1 gives such an answer. You can check this, for example, by the command:

$ host w4u.com.ua 192.168.0.1 

however, the option is not excluded that this name is written as the name of the computer. You can check this, for example, by the command:

$ hostname --fqdn

Another possible option is the result of the influence of information from the / etc / hosts file . If you do not want to give its full content, try temporarily comment out all the lines (the # character at the beginning of the line) and repeat the request.


Another hypothesis is based on a strange comment in the file:

# this file is not used by The Host Name and Address Resolution
# Or The Dns Query Routing Mechanisms Used by Most Proceses ON
# THIS Mac OS X System.

Perhaps some specific specificity of this operating system affects.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions