url, dns and nameserver problems

Soldato
Joined
3 Mar 2006
Posts
3,233
Location
Atcham, Shropshire
ok i bought a domain name, i have a dedicated server which i have installed apache webserver onto and i have sorted out a webiste on it.

due to the fact that its just a dedicated server and not part of our providers webhosting package their name servers wont work for our server which means i have had to use a free nameservers service http://freedns.afraid.org

now i have set up all that and it works fine but there is a problem with the url, i can type it in fine but as soon as the site loads the domain changes to the actual machines ip, i can use a mask that is in the free dns websites control panel but it breaks the login function on the website as the url never changes from page to page and it somehow needs that to change or it wont work.

the wierd thing is that i can log in to the site just fine with url masking enabled but no-one else can even though some others are site admins aswell.

is there a script i can make so that it changes the ip to the actual domain name that i can put in the .htaccess file?
 
Can you post a screenshot of your DNS configuration options for your domain? (not the freedns.afraid.org) one?

Provided your dedicated server has a static IP i don't see why it won't work - that's how we have it set-up, and we never specified the domain name when taking out the server.
 
the only options for me on my domain name control panel are for nameservers and thats it, nothing else at all. the domain was bought from dataflame.

i have an option for redirects in my website control panel (e107) and that will work but on some pages where there are a lot of links the firefox will timeout saying

"Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked."

IE just wont display a page, its not cookies but rather the amount of redirects for the links which is causing it.
 
Ah. Looking on their site they mention this:

Do I have access to my zone file and will I be able to make changes?

With Reseller packages and Windows packages, you have full access to the zone files to edit these. On the Linux Hosting packages, you will need to email [email protected] to edit this for you.
http://www.dataflame.co.uk/clients/knowledgebase.php?action=displayarticle&id=33

You need the A records pointing to your server's IP (and MX if you want to handle email on there). Could be worth a shot. You'll have to reset your nameservers if doing this though.

edit:
Or can you post up your feredns configuration?
 
Last edited:
That's a fairly basic requirement as well. When it comes to renew the domain I would switch to someone else.

Could you post up your freedns configuration instead then?
 
ok i have it set up like this, still sorting it as im trying to find a setup that works lol.

www.mydomain.co.uk is setup to redirect to my servers ip but that one wont work anymore as the browser either says no page can be displayed or redirect loop limit but this will work if i disable redicts from within the E107 control panel but then it displays my ip instead of the domain name.

mydomain.co.uk is setup to go direct to my servers ip and that works fine but 1 page wont load due to the redirect limit.

edit, go to go out for an hour so wont reply for a while, thanks for the help so far your a star.
 
only www.mydomain.co.uk is set to be a web forward and that one is not working atm,

i just noticed something which you may be able to explain, i'm probably using the wrong setting tbh as i can change what type it is.

www.mydomain.co.uk is using web forwarding

mydomain.co.uk is set to A

Type: A - Point subdomain.domain.com to a hard coded IP Address. Most direct and straight forward option, also note any change you make in the FreeDNS program is reflected on the internet and made live immediately. The only way you will not see immediate results is if you have cached a query on your computer by looking it up PRIOR to configuring it in the FreeDNS program.

Type: MX - Point subdomain.domain.com to a mail server. These type of records are special for just mail servers, they can co-exist with A records, and their only use is for routing mail to a different location. All mail implementations check for this record first before attempting to route an e-mail message. If a MX record does not exist for a host, an e-mail delivery would be attempted directly to the IP that the hostname resolves to.

Type: AAAA - Point subdomain.domain.com to a IPv6 address. Useful for those who are using IPv6 on their personal networks or those who are using a IPv4 to IPv6 tunnel at home.

Type: CNAME - Point subdomain.domain.com to another hostname. Good for those who are using other dynamic DNS services. You can create a CNAME record to another host and whatever subdomain.domain.com you choose here will go to whatever IP address the CNAMEd host has.

Type: NS - Point subdomain.domain.com to another NAMESERVER. If you choose this option, then whatever subdomain.domain.com address you choose using FreeDNS will have to be configured and setup on the destination ADDRESS (nameserver) that you choose. This option basically means you are delegating a FreeDNS host to another DNS server all together, so when you choose this option you are telling every computer on the internet to ask the 'address' where subdomain.domain.com is located at. If the host you point an NS record to is not configured to answer for the subdomain.domain.com that you are using in FreeDNS then the subdomain.domain.com host will not resolve.

Type: TXT - Requested by users of the system, used by SPF spam rejecting system, see http://spf.pobox.com/wizard.html for more details.

Type: LOC - A means for Expressing Location Information in the Domain Name System.

RFC1876 has the complete explanation.

To find your latitude/longitude location, you may find Map-O-Rama of use.

Type: RP - The Responsible Person RR.

RP has the following format:

RP <mbox-dname> <txt-dname>

Both RDATA fields are required in all RP RRs.

The first field, <mbox-dname>, is a domain name that specifies the mailbox for the responsible person.

The second field, <txt-dname>, is a domain name for which TXT RR's exist. A subsequent query can be performed to retrieve the associated TXT resource records at .

RFC1183 has the complete explanation.
 
Last edited:
Change the www forwarding to use a CNAME record of mydomain.co.uk. (without the www).

The reason you're getting the redirect loop is that on your domain 'clan members' and 'about' link to your sites IP rather than the domain name. Try changing the link and it should work.
 
CNAME allows you to switch IPs for all your prefixes (www. ftp. game. etc) easily if you ever need to :).

When I go to your site I do get forwarded to just the http://mydomain.co.uk version though, which you could solve if you wanted to by using the above method.
 
Back
Top Bottom