Tag Info

Hot answers tagged

5

The DNS resolver will only move onto the other name servers if the first one returns an error (i.e SERVFAIL) or can't be reached. If the DNS server returns NXDOMAIN then the resolver considers that the proper answer and won't check the others. NXDOMAIN is considered a final definitive answer that the requested domain does not exist. In your case the first ...


5

If I understand your problem correctly, you want to ping your computer from another computer. The ping 1.2.3.4 works but the ping hostname doesn't. What I suspect the situation being is that your computer doesn't have a its hostname registered in DNS that is discoverable by the other machine. If the hostname is not known to the other machine it does not ...


4

I am guessing you don't have your own DNS server. Computers understand IP addresses but not the name of your computer. To make it so, you need to either add a record in your hosts file, which can be found in /etc/hosts, or have a DNS entry on your DNS server. Then it will know what you mean by the hostname of your machine.


3

“Is it…” Well, yes. “How,” is where it gets complicated. Basically, you've got two real options that I can think of. Assuming that you're using Gnu libc, and you have nsswitch support (I vaguely recall that some distribution(s) may have disabled that?), one option might be to replace the “normal” NSS DNS module (ie, /lib64/libnss_dns*) with a custom ...


3

resolv.conf allows you to specify searchdomains. An entry like the following: search cse.iitb.ac.in it.iitb.ac.in iitb.ac.in Allows me to: $ ping -c1 www PING www.cse.iitb.ac.in (10.105.1.3) 56(84) bytes of data. 64 bytes from cse.iitb.ac.in (10.105.1.3): icmp_seq=1 ttl=64 time=0.803 ms --- www.cse.iitb.ac.in ping statistics --- 1 packets transmitted, ...


2

The Mint dns-fix command (from searching) appears to be a simple shell script that changes /etc/resolv.conf to use a few pre-defined nameservers. You can confirm by using a file viewer to examine the script; e.g., less "$(command -v dns-fix)".


2

You need to add a DNS A record for sub.mydomain.com to point to server IP like you did for mydomain.com Getting Started guide step 1 at http://centminmod.com/getstarted.html lists how to setup main hostname's DNS which is basically a subdomain as well so same thing add a DNS A record


2

I'm not aware of any method to override the system resolvers simply by using environment variables. You can override resolv.conf options using RES* environment variables but those can't be used to override the nameserver definitions (see the resolv.conf manual page for more information). The best option would be to use the LD_PRELOAD mechanism of the ...


1

The solution was to just add 10.2.0.1 as a DNS server on the host and to add the following lines to /etc/dnsmasq.conf: address=/host.local/10.2.0.1 address=/host.local/<ipv6 address>


1

The DNS server settings are defined for the machine, not for the user. The gethostbyname*() syscall family tries to lookup a given hostname and return an IP-address. The first place is normally the /etc/hosts file. Then they do a lookup via the DNS-servers set in /etc/resolv.conf.


1

The first part of your question asks for recursive definitions in /etc/hosts. This is not necessary as it is already possible to specify multiple hostnames there: 69.162.80.52 pyrrha.compsci.university.org pyrrha Please read the manual page (man 5 hosts) for the syntax of the hosts file. The second part of your question is a duplicate of IPv6 Zone ID in ...



Only top voted, non community-wiki answers of a minimum length are eligible