![]() |
About configuring hostname resolution statically or dynamically
Static hostname resolution configuration is done in /etc/hosts.
It looks like dynamic hostname resolution configuration is done using resolv.conf file. But from what I know, this file is generated by another utility (See below). So to do dynamic hostname resolution configuration, I can use nmtui or nmcli utility to add DNS ip address. Local host use DNS for IP address lookup when local host cannot find IP specified in /etc/hosts. Here is resolv.conf for Linux Mint 18: Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) Here is resolv.conf for CentOS 7: Code:
# Generated by NetworkManager Quote:
in resolv.conf for the above nameserver directive are local, how do I locate these nameservers in local host? From man resolv.conf: Quote:
what is it looking for in Home directory? There are only files and directories in Home. What did I missed? Thank you. |
CentOS 7
If your system is configured for DHCP then it will usually get the DNS name server from the the DHCP server which is normally the router in a home system. Via NetworkManager you can use other DNS name servers not provided by the DHCP server as well as enter everything manually including disabling NM completely. Mint 18 dnsmasq is installed and running which uses the computer for a local DNS caching server which is why you see 127.0.1.1. You can also provide a search list which is usually the local domain name. I assume you used Home for a domain name when you installed Mint. AFAIK if you use mysite in the web browser it will automatically try http://mysite.home/ |
It would not search /home. I'd think that someone/somehow placed a "name" as home. Like in computer name or domain name.
|
So how do I remove "search Home" since resolv.conf
was generated by another utility? |
What's in /etc/network/interfaces file ?
|
The resolvconf script generates the contents of the resolv.conf file.
|
Quote:
Mint 18 Code:
Code:
[root@centos7-1024ram-minimal ~]# cd /etc/network |
I might as well ask this. What is result of command "hostname" ? no quotes.
|
All times are GMT -5. The time now is 01:13 AM. |