LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2011, 08:12 PM   #1
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Rep: Reputation: 17
Odd bind behavior with wildcards


I've got an interesting problem when it comes to wildcard entries in bind.

If I put the following in:

qa.express IN A 172.16.0.10
* IN A 172.17.1.156

If I then look up "express.example.com" it doesn't return an answer - it *should* return 172.17.1.156, but it won't unless I put that hostname in specifically. qa.express.example.com resolves as expected.

Any ideas why this happens?
 
Old 04-19-2011, 03:19 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Hi,

I guess your zone name is example.com. With these lines in the zone file you can resolve *.example.com and qa.express.example.com
If you want to resolve express.example.com and subdomains like *.express.example.com, you need to define a new $ORIGIN
Code:
* IN A 172.17.1.156 ; for *.example.com (except express.example.com)

$ORIGIN express.example.com.
@ IN A 172.17.1.156 ; express.example.com
qa.express IN A 172.16.0.10
* IN A 172.17.1.156 ; *.express.example.com
Regards
 
Old 04-19-2011, 06:21 AM   #3
fantasygoat
Member
 
Registered: Sep 2009
Posts: 119

Original Poster
Rep: Reputation: 17
If you do an ORIGIN, don't you skip the subdomain?

Quote:
$ORIGIN express.example.com.
@ IN A 172.17.1.156 ; express.example.com
qa IN A 172.16.0.10
Anyway, I'm just curious why it doesn't work as expected given the example I've given.
 
Old 04-19-2011, 07:35 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,216
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
This is the way dns works. You should read RFCs 1034, 4592 about domain wildcards.
If you bother reading all this stuff, have a look here and here (last paragraph)

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Odd monitor behavior drummerdan Slackware 1 05-17-2007 10:04 PM
ODD behavior in KDE mkhan919 Linux - Newbie 6 01-24-2007 06:09 AM
Odd Knoppix behavior Darkstar Linux - Distributions 1 06-25-2005 10:46 PM
Odd RedHat 9.0 behavior... 386 Linux - Networking 2 10-15-2004 11:00 AM
RH 6.2 ... odd behavior jubal Linux - Networking 3 02-27-2001 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:47 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