faqts : Computers : Internet : Domain Names : djbdns

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 20 people (85%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

I know how to add, but how do I DELETE records from tinydns without editing the data file manually?

Dec 29th, 2003 22:42
Jonathan de Boyne Pollard, Brian Coogan, Csongor Fagyal, http://marc.theaimsgroup.com/?m=99248749406208


There are no supplied commands to delete or modify records - 
they can be fairly easily constructed in shell or perl scripts 
or other similar languages.  
(Adrian Ho published a "del-ns" script, which has no error 
checking and which does not safely update the database in the 
way that the "add-ns" script does, on the "dns" mailing list in 
2001-06.  (See sources.)  This should provide a starting 
point.)
A number of people are working on web enabled management of 
djbdns and these scripts could be used, providing you take care 
to ensure appropriate security on the scripts (eg: 
authentication + https would be a good start).
Records can be deleted (more properly: disabled) in-place by 
changing the first character of the line to a '-' character.  
This does require the file be edited in some (possibly 
automated) fashion;  see the tinydns-data documentation for 
more information on this.
Remember you still have to run 'make' to rebuild the data.cdb 
file.