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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2010, 12:48 AM   #1
ranjancom2000
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Rep: Reputation: 0
Need Bulk record creating for BIND Server


Need Bulk record creating for BIND DNS server.

I have information in a file I need to crate a new zone and A-record.

I have 10000 domains in a file. Is there any tool available to do this @ one go
 
Old 10-02-2010, 12:52 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
What is the information file format?

Do you have uniq or random name and ip ?

Give some eample of name and ip.

Regards,
 
Old 10-02-2010, 01:47 AM   #3
ranjancom2000
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I need to create Bulk domains

domain-name-1.info 10.0.0.1
domain-name-2.info 10.0.0.2
domain-name-3.info 10.0.0.3
domain-name-4.info 10.0.0.4
domain-name-5.info 10.0.0.5
domain-name-6.info 10.0.0.6
domain-name-7.info 10.0.0.7
domain-name-8.info 10.0.0.8
domain-name-9.info 10.0.0.9
domain-name-10.info 10.0.0.10
domain-name-11.info 10.0.0.11
domain-name-12.info 10.0.0.12
domain-name-13.info 10.0.0.13
domain-name-14.info 10.0.0.14
domain-name-15.info 10.0.0.15
domain-name-16.info 10.0.0.16
domain-name-17.info 10.0.0.17
domain-name-18.info 10.0.0.18
domain-name-19.info 10.0.0.19
domain-name-20.info 10.0.0.20
domain-name-21.info 10.0.0.21
domain-name-22.info 10.0.0.22
domain-name-23.info 10.0.0.23
domain-name-24.info 10.0.0.24
domain-name-25.info 10.0.0.25
domain-name-26.info 10.0.0.26
domain-name-27.info 10.0.0.27
domain-name-28.info 10.0.0.28


Same I need to delete the record
 
Old 10-02-2010, 01:59 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
You can create scrip or you can simply run from command line.

run from shell prompt.
Code:
# for i in {1..100}; do echo "name-$i IN A ip-$i"; done >> you_file_name
or create script file with same syntex.

# vim test

Code:
#!/bin/bash
for i in {1..254}
do
echo "domain-name-$i.info IN A 10.0.0.$i" >> test_file
done
Hope this help you

NOTE: always run command/script on test environment before applying on production environment.

Regards,
 
Old 10-02-2010, 09:01 PM   #5
ranjancom2000
LQ Newbie
 
Registered: Oct 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I need to do all process
Need to create new zone record update new IP with A Record and also update the named.conf file
 
  


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
creating domain name in bind problems exposing bind to internal network abhijit_mohanta Linux - Networking 1 09-03-2009 01:09 AM
creating domain name in bind problems exposing bind to internal network abhijit_mohanta Linux - Security 1 09-03-2009 01:01 AM
Bind takes long time to replicate A record change to secondary DNS server tech_contact Linux - Networking 3 10-23-2007 07:14 AM
Creating A record and PTR record daemonkl *BSD 3 10-03-2007 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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