How to find the domain name of a server

dnsnetworking

I'm having trouble finding the domain name of my school's server, I read another question similar to this but their commands didn't work.

I tried to use nslookup and then when I was prompted I entered server. I get the following output. I don't understand where the domain name is stored. I'm using a wired LAN connection from my university.

Default Server: 127.0.01
Address: 127.0.0.1#53
Default Server: ::1
Address: ::1#53 

Best Answer

You should nslookup the IP. It will return. Example.

[nazu@healer ~]$ nslookup
> bro-ns-01
Server:         10.100.1.2
Address:        10.100.1.2#53

Name:   bro-ns-01.angelsofclockwork.net
Address: 10.100.1.2
> 10.100.1.2
Server:         10.100.1.2
Address:        10.100.1.2#53

2.1.100.10.in-addr.arpa name = bro-ns-01.angelsofclockwork.net.
> 

I'm assuming you're using dnsmasq or otherwise, because your server address is set to your localhost. If that's the case, it should still be transparent enough to pull the information.

You could also look at /etc/resolve.conf if you're on the same network. You're more than likely being given a reverse DNS entry that has the same domain suffix of static servers.

[nazu@healer ~]$ cat /etc/resolv.conf 
; generated by /usr/sbin/dhclient-script
search angelsofclockwork.net.
nameserver 10.100.1.2
Related Question