![]() |
BIND SOA Configuration on a Sub Domain
Hello,
I was hoping someone could help me solve this problem with BIND, SOAs and Sub Domains I have the following domain mydomain.co.uk NS = ns1.provider.com NS = ns2.provider.com SOA = ns1.provider.com A = ns1.mydomain.co.uk 1.1.1.1 A = ns2.mydomain.co.uk 2.2.2.2 I have created a subdomain - subdom.mydomain.co.uk NS = ns1.mydomain.co.uk NS = ns2.mydomain.co.uk A Records should be handled by ns1/2.mydomain.co.uk for the subdom.mydomain.co.uk and www.subdom.mydomain.co.uk The problem is that when I do a lookup against subdom.mydomain.co.uk its not getting an authoritive answer as it seems to be getting the SOA from the root/parent domain (mydomain.co.uk) I've been doing a bit of googling and saw some suggestions of using glue records but was told by my provider that Nominet doesnt support them. Ultimatly my end goal is to not change anything in mydomain.co.uk (except adding records pointing to subdomains) and have subdom.mydomain.co.uk getting A records from ns1.mydomain.co.uk and ns2.mydomain.co.uk I would post the zone files but I dont have access to them. Any help much appreciated! Pete |
Hi,
Unless it's a typo, you have a wrong SOA for your domain. It should be Code:
mydomain.co.ukQuote:
Anyway, the zone file for the TLD, should look like this: Code:
$TTL 86400Regards |
@bathory
The SOA should be Code:
ns1.mydomain.co.ukor Code:
mydomain.co.ukThis might help you Code:
subdom.mydomain.co.uk |
Hi,
Thanks for the reply, I've spoken to my provider and they have given me the zone file. Code:
While I dont have direct access to the files to change myself I can specify changes to the provider and they can add them for me (they told me what I wanted to do wasnt possible, hence the post here as I found it hard to believe) So from my understanding of what you're saying the zone file should look like (excluding the query regarding the root SOA)- Code:
$TTL 21600Pete |
Its really confusing me
but as per my knowledge there should be an A record pointing "ns" Code:
@ORIGIN subdom.mydomain.co.uk. |
Quote:
|
Quote:
Code:
NS ns1.mydomain.co.ukCode:
subdom.mydomain.co.uk? |
@deep27ak, @Pete-L
Don't be confused from the SOA word in the first line of a SOA record. The SOA RR is the whole stuff from the TTL to the closing ")". In the line Quote:
Quote:
Code:
$TTL 21600 |
Hmmm strange so it looks like its configured ok then as this is what is currently configured (if a little untidy) -
Code:
$TTL 21600Code:
nslookuphowever when I do Code:
nslookupName: subdom.mydomain.co.uk Address: 5.5.5.5 |
Quote:
What give the following: Code:
dig ns mydomain.co.uk |
Quote:
Code:
#dig -x 1.1.1.1 |
@bathory
"dig ns mydomain.co.uk" gives Code:
mydomain.co.uk. 21600 IN NS ns6.provider.com.Code:
subdom.mydomain.co.uk. 21600 IN NS ns2.mydomain.co.uk."dig -x 1.1.1.1" gives Code:
;; ANSWER SECTION:Code:
2.2.2.2.in-addr.arpa. 86400 IN PTR ns2.mydomain.co.uk. |
So, it works.
From the 2 dig outputs, ns1/2/5/6.provider.com are the authoritative nameservers for mydomain.co.uk and ns1/2.mydomain.co.uk are the authoritative nameservers for subdom.mydomain.co.uk. Now you need to configure the zone file(s) in ns1/2.mydomain.co.uk to add the A RRs for www.subdom.mydomain.co.uk and so on. Regards |
@bathory
The A records are handled by the load balancers, would this say to you that they arent serving the correct records when ns1/2.mydomain.co.uk gets queried? Best Regards, Pete |
Quote:
If so, then yes, they should answer authoritatively when queried for subdom.mydomain.co.uk and hosts in that subdomain. Try some queries using dig an see if you get the correct answers: Code:
dig subdom.mydomain.co.uk |
| All times are GMT -5. The time now is 02:14 PM. |