Ubuntu: Redirecting dns ip to url locally


So I have this ip I would like to redirect it to something like http://mywebsite.corp.com. I think I changed all the configurations that need to be changed, but I can only get into the website by typing, but gets an error saying that its site can't be reached when typed in mywebsite.corp.com. I also mapped IP/hostname in the router.

P.S. I am trying to get it to work internally, no need to make it externally. I can also ping its ip from other server that is in same network, but not by its domain :(

I would really appreciated if someone could help! Thank you!

cat /etc/hosts       localhost.localdomain   localhost     mywebsite.corp.com  

hostname  mywebsite  

cat /etc/resolv.conf  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)  #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN  nameserver  search localhost  search mywebsite.corp.com  


If from other server on that network, if is linux os command is host mywebsite.corp.com, I guess that is your DNS server, you can not resolve logical name to ip address, problem is on record on dns server.

On DNS server you must have record, mywebsite.corp.com A

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »