Changing output of bind

Andy Shellam (Mailing Lists) andy.shellam-lists at mailnetwork.co.uk
Mon Dec 11 12:29:08 UTC 2006


It might help if you explain what you're trying to achieve by doing this.

When a host requests "www.*" then it'll be given the appropriate records 
from your zone file.
If a client requests a different host but gets "www" instead it'll 
confuse things.



RZ wrote:
> Thx,
>
> i feared that i got something wrong...
>
> So let me redefine my question please (hope using the correct syntax):
> i want named to return an additional 'answer' so that e.g. the output of
>
> www                 IN   A	195.110.192.3
>
> is always appended in dig output.
>
> Any help appreciated,
>
> RZ
>
>   
>> You're confusing what part of the DNS system actually creates the output
>> you see on screen.
>>
>> Named simply returns results, dig formats the output.
>> Compare it to a database - you query the database, but it is not the
>> database that formats your results, it's whichever prorgam runs the query.
>>
>> That's the same as bind - for example, you can query a Bind DNS server
>> using nslookup on Windows - the data is the same but the output format
>> is completely different.
>>
>> You will need to be modifying dig, or writing your own DNS client.
>> Even if it is only for internal use, if you break the output of bind,
>> other applications that depend on it will break.
>>
>> Andy.
>>
>> RZ wrote:
>>     
>>> Thx for your reply.
>>>
>>> The task is to add a line to the normal output of named. I thought that
>>> cannot be as hard...
>>> And i won't violate any standards as it is for internal use only. But
>>> what is the format of the message dig receives?!?! Could you explain a
>>> little bit more please?
>>>
>>> And how would it be possible to change dig's output?
>>>
>>> Thx for any help,
>>>
>>> RZ
>>>
>>>
>>>       
>>>> On Sun, Dec 10, 2006 at 07:58:55PM +0100,
>>>> Roland Zoder <rz at razfazz.at> wrote
>>>> a message of 36 lines which said:
>>>>
>>>>
>>>>         
>>>>> For internal reasons I need to change the output of named.
>>>>>
>>>>>           
>>>> You certainly cannot: named produces replies in standard DNS wire
>>>> format (RFC 1035) and you cannot change it or standard DNS clients
>>>> (such as dig or any resolver) will not be able to use it.
>>>>
>>>> You can change dig's output format if this is what you want.
>>>>
>>>>
>>>>         
>>>
>>>
>>>
>>>
>>>
>>>       
>> --
>> Andy Shellam
>> NetServe Support Team
>>
>> the Mail Network
>> "an alternative in a standardised world"
>>
>> p: +44 (0) 121 288 0832/0839
>> m: +44 (0) 7818 000834
>>
>>
>>
>>     
>
>
>
> !DSPAM:37,457d481b40411154020685!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834



More information about the bind-users mailing list