Solved How the DNS installation on FreeBSD 10.2

Hello I installed FreeBSD 10.2 system and got real IP on this system and downloaded PHP and Apache

And when you open IP in any other device is opened my site and I buy a domain .com from site godaddy and link in IP.

image.png


But and I want to make contact through the DNS such as hosts give you the names like:
NS1.host.com
NS2.host.com

I need:
NS1.myrealip
NS2.myrealip

Can I work in the FreeBSD system I see:
Domain Name System (DNS)
link : https://www.freebsd.org/doc/handbook/network-dns.html

But I did not understand something because of the language I speak a language other than English.

I want this just to solve a small problem is not very important. For example, when you open:
http://myweb.com/
link changes to:
http://www.myweb.com/

I can not do it if I stayed on the same way. I tried from side godaddy it works only if the domain belted in name server not IP direct. I tried from like .htaccess or PHP code it did not work.

I hope how the DNS download or that there is a better and easier solution than mine.
 
Hello. Most likely you do not want to run your own DNS server to the world unless you absolutely need to. For a small website you most likely do not need to. You are most likely best off using the registrar's DNS. If your IP address is 10.10.10.10 for example, you would just have two "A" records in Godaddy's DNS for myweb.com and another for www.myweb.com pointing to your 10.10.10.10 address.
 
myweb.com
www.myweb.com


The two are based open my IP. But I want to use only www.myweb.com. If someone has to open myweb.com it is converted automatically www.myweb.com. Such as FreeBSD.org or Google.com

This alleviates the problems of online search is the best of the site because it is registered, for example, Alexa there are two names for the same location.
Thank you for your quick reply.
 
I think I can solve it by 301 moved permanently.

Can I work from the server or do I contact a team at godaddy?
I've never used Godaddy before so I am not familiar at the level of control you have. If you control the web server you can configure this yourself using the manual I referenced above else you would have to contact Godaddy.
 
I think I've analyzed and placed in a box @ to switch to www.

Omit the www of the cname. And the establishment of new in A (host) The name www and I can put my own IP unlike CNAME.

I need to wait from 1 to 48 hours to implement changes and then I'm going to experience the site.

If thank you for your efforts with me.

I love this forum a great eye whenever he needs is find a solution here, or at least someone is trying to help me to reverse forums my language :(.

Close the subject and I'll tell support godaddy or you if I need help again.
 
Back
Top