Hi Jens,
Thank you for replying to my question. I have figured out the cause of
the problem.
Actually, since there is no TXT record type in Yast DNS, there is no way
to add a TXT record for a zone file !
I realize that Yast DNS uses LDAP database, I use Yast LDAP Browser to
add a TxtRecord for the zone file. But, when restarting the named
service (rcnamed restart), there is no TXT record in the zone file!!
Even when adding manually a TXT record in the zone file, the service
restarting makes it disappear !!
I trace the file ‘rcnamed’ and found that it uses ldapdum
(/usr/share/bind/) for each DNS record. By looking into the file
‘ldapdump’, I found that the function ‘createStaticZone’ has missed the
TXT record when creating zone file(s).
I adds TXT in the loop ‘foreach’ in ldapdump as follows:
sub createStaticZone {
…
foreach my $rec ( qw( NS A MX TXT PTR CNAME SRV HINFO MINFO SIG KEY
AAAA LOC NXT NAPTR KX CERT A6 DNAME ) ) {
…
}
then restart the named server.
Now all works as it should
Just for your info and others who have the same problem as mine
Regards,
Hwey
On 03/27/2013 5:06 PM, Hwey wrote:[color=blue]
Hi,
I tried to insert a txt record for a DNS zone using Yast DNS server on SLES
10 SP4 unsuccessfully.
Since there are no TXT type on the DNS server interface, I cannot use Yast
DNS.
I added a TXT record manually in the zone file located at
/avr/lib/named/master/ and restart the DNS name service (rcnamed restart)
The TXT record added manually disappear from the zone file.
Does anyone have this problem and a solution for it?
Thank you in advance for your help,
Harry NG
[/color]