Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Created August 1, 2013 13:45
Show Gist options
  • Save fiddyspence/6131475 to your computer and use it in GitHub Desktop.
Save fiddyspence/6131475 to your computer and use it in GitHub Desktop.
foogist
[root@training cobbler]# cat zone.template
\$TTL 300
@ IN SOA $cobbler_server. nobody.example.com. (
$serial ; Serial
600 ; Refresh
1800 ; Retry
604800 ; Expire
300 ; TTL
)
IN NS $cobbler_server.
$cname_record
$host_record
[root@training cobbler]# cat named.template
options {
listen-on port 53 { 127.0.0.1; 172.16.42.232; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 172.16.42.232; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
#for $zone in $forward_zones
zone "${zone}." {
type master;
file "$zone";
};
#end for
#for $zone, $arpa in $reverse_zones
zone "${arpa}." {
type master;
file "$zone";
notify yes;
};
#end for
/etc/cobbler/settings:
# the --dns-name information of other system records. In general,
manage_dns: 1
restart_dns: 1
manage_dhcp: 1
restart_dhcp: 1
/etc/cobbler/modules.conf
[dns]
module = manage_bind
[dhcp]
module = manage_isc
Did not build DNS:
184 cobbler system add --name=test.foo.com --dns-name=test.foo.com --mac=00:0c:29:ba:8d:da --interface=eth0 --profile=rhel5-x86_64
Did not build DNS:
189 cobbler system add --name=test.foo.com --dns-name=test.foo.com --mac=00:0c:29:ba:8d:da --interface=eth0 --profile=rhel5-x86_64 --ip-address=192.168.0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment