Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: 110982 (mandriva - 01/05/08)

Section: 1 (Commandes utilisateur)


dns-hosts-import - generate DNS tables from /etc/hosts entries


dns-hosts-import [ option... ] filename...
dns-hosts-import -Help
dns-hosts-import -VERSion


The dns-hosts-import program is used to read your /etc/hosts file and generate a DNS forward map from it, as a first step to configuring DNS.


The following options are understood:

Provide some help with using the dns-hosts-import program.

Print the version of the dns-hosts-import program being executed.

All other options will produce a diagnostic error.

All other options will produce a diagnostic error. Options may be abbreviated, the minimum abbreviation is shown in upper-case. Options are case insensitive. Options and file names may be mixed arbitrarily on the command line.


The dns-hosts-import command will exit with a status of 1 on any error. The dns-hosts-import command will only exit with a status of 0 if there are no errors.


If you have an /etc/hosts file which looks like this:     mercury     venus     earth     mars     jupiter     saturn     neptune     uranus     pluto lp
By using the following command
 % dns-hosts-import /etc/hosts hosts-tmp
You will see an output file of the form
 @               in      soa (
                                 3       ; serial
                                 10800   ; refresh: 3 hours
                                 1800    ; retry: 30 minutes
                                 604800  ; expire: 1 week
                                 86400 ) ; minimum: 1 day
 mercury         in      a
 venus           in      a
 earth           in      a
 mars            in      a
 jupiter         in      a
 saturn          in      a
 neptune         in      a
 uranus          in      a
 pluto           in      a
 lp              in      cname   pluto
You are expected to manually edit this into the rest of the database. You especially need to put sensable values into the SOA record.

See dns-hosts(1) for how to retrieve your /etc/hosts file once you have imported it.

dns-hosts-import version 1.8,
Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2003, 2004, 2005, 2006 Peter Miller; All rights reserved.

The dns-hosts-import program comes with ABSOLUTELY NO WARRANTY; for details use the 'dns-hosts-import -VERSion Warranty' command. The dns-hosts-import program is free software, and you are welcome to redistribute it under certain conditions; for details use the 'dns-hosts-import -VERSion Redistribution' command.


Peter Miller E-Mail:
/\/\* Web:
A... ADIEU...

P : Qu'est-ce que t'as ?
M : Ac... accident... de chasse... Un con de chasseur... m'a... confon... du av...
P : Avec ?
M : ... sa femme...