LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2007, 11:31 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Bind DNS for Active Directory long names don't resolve


I have a Bind DNS server (well more than one) and I'm trying to give them all the records of the active directory. I put in all the records and tested, but it seems that only the short ones work and non of the long ones work:
Code:
$ dig _ldap._tcp.mydomain.com srv

; <<>> DiG 9.3.2 <<>> _ldap._tcp.mydomain.com srv
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18246
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;_ldap._tcp.mydomain.com.                IN      SRV

;; ANSWER SECTION:
_ldap._tcp.mydomain.com. 259200  IN      SRV     0 0 389 server01.mydomain.com.

;; AUTHORITY SECTION:
mydomain.com.            259200  IN      NS      dns.mydomain.com.
mydomain.com.            259200  IN      NS      dns2.mydomain.com.

;; ADDITIONAL SECTION:
server01.mydomain.com.       259200  IN      A       x.x.x.x
dns.mydomain.com.        259200  IN      A       x.x.x.x
dns2.mydomain.com.       259200  IN      A       x.x.x.x

;; Query time: 1 msec
;; SERVER: x.x.x.x
;; WHEN: Tue Jan 16 17:08:32 2007
;; MSG SIZE  rcvd: 161
returns correctly but anything longer
Code:
$ dig _ldap._tcp.pdc._msdcs.mydomain.com srv

; <<>> DiG 9.3.2 <<>> _ldap._tcp.pdc._msdcs.mydomain.com srv
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 65344
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;_ldap._tcp.pdc._msdcs.mydomain.com. IN  SRV

;; AUTHORITY SECTION:
mydomain.com.            259200  IN      SOA     mydomain.com. postmaster.mydomain.com. 2006120401 86400 18000 3600000 604800

;; Query time: 1 msec
;; SERVER: x.x.x.x
;; WHEN: Tue Jan 16 17:08:21 2007
;; MSG SIZE  rcvd: 98
always fails

I suspect this is because "_names" like that don't extend the dns namespace and hence are answered but "names" without the illegal "_" character cause the server to try to resolve the subdomain which doesn't exist.

I'm not really sure how microsoft gets around this but it's quite annoying for me trying to get this to work with bind.

Can anybody help me out on this?
 
Old 01-17-2007, 07:51 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
Underscore "_" is not valid in a hostname according to RFC 952. You can bypass this restriction using the check-names option:
Code:
check-names ignore;
 
Old 01-18-2007, 05:22 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
I tried this, turns out it wasn't needed. The file was owned by root and the dns server was running as named. Doh.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Configure BIND DNS to Answer Active Directory Queries ghight LinuxAnswers Discussion 1 07-04-2007 09:46 AM
BIND: server can't resolve names on itself psychobyte Linux - Networking 6 02-03-2006 05:24 PM
Configure BIND DNS to Answer Active Directory Queries Astro Linux - Networking 1 02-01-2006 03:50 PM
DNS will not resolve non-domain qualified names arobinson74 Linux - Networking 2 10-25-2004 04:13 PM
Can bind 9 (DNS) resolve names based on who's asking?? (internal vs. external clients registering Linux - Networking 3 06-16-2004 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration