Can linux map ip addresses to dns as in Windows?

Asked By 50 points N/A Posted on -
qa-featured

Can Linux map IP addresses to DNS?

If it is possible, please instruct me on how it is done.

I am familiar on how it is done in Windows but not in Linux.

I have been trying to figure it out for days now.

SHARE
Best Answer by Gibson Lauria
Answered By 10 points N/A #136693

Can linux map ip addresses to dns as in Windows?

qa-featured

 

The DNS system helps in translating IP addresses to the corresponding domain name hence no need to remember numbers like 192.168.0.1.

From my understanding you want to bind the name to the IP address and the quickest way to do that is to add the IP in the hosts file (/etc/hosts) same way you would do it in windows (windowssystem32driversetchosts).

Best Answer
Best Answer
Answered By 0 points N/A #136694

Can linux map ip addresses to dns as in Windows?

qa-featured

Hi,

When you are using Unix or Linux operating systems, the one that provides access to the Domain Name System is the resolver. You can access the resolver configuration by going to /etc/resolv.conf.

This is where the resolver shows the contained information resolver routines during a process.

By using the cat command or gerp command, you can map the ip back to the dns and vice versa. Input this command:

cat /etc/resolv.conf

And an output will show return something like this:

nameserver 192.168.1.2
nameserver 192.168.1.3

Regards,

Gibson

Login/Register to Answer

Related Questions