LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hosts to DNS converter (https://www.linuxquestions.org/questions/linux-software-2/hosts-to-dns-converter-4175453727/)

prowla 03-12-2013 02:21 AM

hosts to DNS converter
 
Hi.

We need to set up a DNS server on CentOS, and I recall from the past having a utility on HP-UX called hosts2named, which I guess was based on the h2n utility mentioned in the DNS book.
I tried doing "yum provides" for hosts2named and h2n on a vanilla install of CentOS, but it came back with nothing.
Is there anything available for CentOS?

I've installed bind with "yum install bind*".

Code:

[root@vmdns1 ~]# yum list bind*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * extras: mirror.rmg.io
 * updates: mirror.rmg.io
Installed Packages
bind.x86_64                        32:9.8.2-0.17.rc1.el6.3              @updates
bind-chroot.x86_64                32:9.8.2-0.17.rc1.el6.3              @updates
bind-devel.x86_64                  32:9.8.2-0.17.rc1.el6.3              @updates
bind-dyndb-ldap.x86_64            2.3-2.el6                            @base 
bind-libs.x86_64                  32:9.8.2-0.17.rc1.el6.3              @updates
bind-sdb.x86_64                    32:9.8.2-0.17.rc1.el6.3              @updates
bind-utils.x86_64                  32:9.8.2-0.17.rc1.el6.3              @updates
Available Packages
bind-devel.i686                    32:9.8.2-0.17.rc1.el6.3              updates
bind-libs.i686                    32:9.8.2-0.17.rc1.el6.3              updates
[root@vmdns1 ~]#


Thanks for looking!

acid_kewpie 03-12-2013 03:54 AM

converting a few host file entries is pretty trivial compared to setting up the rest of the service. Can't you just pump the file through a few sed commands or such?


All times are GMT -5. The time now is 08:22 AM.