Discussion Locked

DNS?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi.
I have redhat 7 with apache and DNS working on the same machine. Now what makes the www on the address work for the websever? Like the internet the address is www.xxx.xxx. The only way I can get the www to work is by inserting it in the apache ServerName directive that way, but I dont think thats the proper way.I tried putting it in the DNS zone files as CNAME but that didnt work. I am confused.
Can you enlighten me?

Thanks......Pat

3 replies

by jimbb

Hi Pat,

When you surf to www.somewhere.com, you actually look for a server called www, known in the domain "somewhere", which in its turn is known in the domain "com". So if I surf to your site, I ask my DNS: ever heard of "somewhere.com"? If itknows, it will send me to your DNS server to ask for a server called "www", in the domain it manages. If it doesn't, it will ask its DNS server for the address of "somehere.com", but the end result is the same: the DNS of your domain should be ableto translate "www" into the IP address of your server.
I don't know much about Apache, but in the webservers I've played with you had to also tell them to which "name" to respond, otherwise they would only respond when you surf to http://ip_address. So I guess you were on the right way, you just have to do both things.

Jim

by theword

Hi I was hopeing to get more info, but at least you tried so I will give you the points. If you can be more specific, that would be great. bye..

This discussion is closed to new replies.