Forum Moderators: buckworks & webwork

Message Too Old, No Replies

DNS Record Help

how to get http://mywebsite.com to show up

         

melaniehayes

1:47 pm on Oct 24, 2002 (gmt 0)

10+ Year Member



I switched over to a reseller account, so now it's my job to setup DNS records, and I know one of them will allow my site to show up with or without the www. Can someone tell me what record it is, and how to set it up?

Thanks,
Melanie

Slade

2:04 pm on Oct 24, 2002 (gmt 0)

10+ Year Member



this is what nslookup shows for my domain:

> set type=all
> mydomain.tld ns1.host.tld
Server: ns1.host.tld
Address: 209.51.159.76

mydomain.tld MX preference = 0, mail exchanger = mydomain.tld
mydomain.tld
primary name server = ns1.host.tld
responsible mail addr = root.ns1.host.tld
serial = 1014393537
refresh = 28800 (8 hours)
retry = 7200 (2 hours)
expire = 3600000 (41 days 16 hours)
default TTL = 86400 (1 day)
mydomain.tld nameserver = ns2.host.tld
mydomain.tld nameserver = ns1.host.tld
mydomain.tld internet address = 209.51.159.66
mydomain.tld internet address = 209.51.159.66
ns1.host.tld internet address = 209.51.159.76
ns2.host.tld internet address = 209.51.159.76

What control panel/OS?

melaniehayes

2:15 pm on Oct 24, 2002 (gmt 0)

10+ Year Member



HSphere control panel, unix.
The web site is <bleeeeep>
That works, but not without the www.

Mel

[edited by: rcjordan at 2:41 pm (utc) on Oct. 24, 2002]
[edit reason] no references to your site, please. [/edit]

jdMorgan

2:29 pm on Oct 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Mel,

We're not allowed to post links to our own sites here, in order to prevent abuse by "forum name-droppers".

I haven't used the control panel you mentioned, but you need to add an "A Record" to your Zone file, like so:


ftp.yourdomain.com. IN A 123.456.789.0
www.yourdomain.com. IN A 123.456.789.0
yourdomain.com. IN A 123.456.789.0

Don't forget the trailing periods!

HTH,
Jim

dingman

3:03 pm on Oct 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nothing at all wrong with Jim's method, but I use CNAMEs, eg,

@ IN A 192.168.254.4
IN HINFO "p166mmx" "Debian 3.0"

www IN CNAME @
mail IN CNAME @
ns IN CNAME @
ns2 IN CNAME andrew

andrew IN A 192.168.254.1
IN HINFO "Athlon 750" "Debian 3.0"

Two things worthy of note abaove. First, @ is a stand-in for whatever domain name the zone file is being used for. I write my zone files that way because it lets me do fun things like using the same zone file for foo.com, foo.net, and foo.org. Second, you can't use a CNAME unless there is an A record that points to whatever name you use to the right of the CNAME label.

I don't know jack about any control panel software, so I can't help with that. The above is excerpted from a working Bind 9 zone file, though obviously it's my internal view. (Since I use the @ trick, I didn't even have to remove my domain name :))