Updating bind host files
So long as you are internally consistent, you can name the zone data files anything you want.
This flexibility can lead to some confusion when working at different sites or referring to different DNS manuals and books.
You need to add an NS record and an A record for each root server you want to include in the file.
3600000 A 1.17 ; ; temporarily housed at NSI (Inter NIC) .
The file or directory is referenced by its full or relative path on the host machine.
By contrast, when you use a volume, a new directory is created within Docker’s storage directory on the host machine, and Docker manages that directory’s contents.
This example is contrived to be extreme, but replaces the contents of the container’s For some development applications, the container needs to write into the bind mount, so changes are propagated back to the Docker host.
3600000 A 22.214.171.124 ; ; temporarily housed at ISI (IANA) .
Caution – The IP addresses and network numbers used in examples and code samples in this manual are for illustration purposes only. Some statements can contain a contain a block of statements.
Do not use them as shown because they might have been assigned to an actual network or host. Again, each statement in the block is terminated with a semicolon.
3600000 A 1.12 ; ; temporarily housed at ISI (IANA) .
hermit.ourroot.private ( 1997071401 ; serial number (YYYYMMDD##) 10800 ; refresh after 3 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day ; ourroot.private.
The file or directory does not need to exist on the Docker host already. Bind mounts are very performant, but they rely on the host machine’s filesystem having a specific directory structure available.