Project

General

Profile

Actions

Feature #18148

closed

Report DHCP/DNS name and domain via facts on the image

Added by Lukas Zapletal almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Image
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Some users prefer to keep the DHCP hostname when re-discovering existing hosts. We need to report these values:

[lzap@lzapx ~]$ nmcli -t -f DHCP4.OPTION c show eth0
DHCP4.OPTION[1]:requested_classless_static_routes = 1
DHCP4.OPTION[2]:requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[3]:subnet_mask = 255.255.255.0
DHCP4.OPTION[4]:requested_subnet_mask = 1
DHCP4.OPTION[5]:domain_name_servers = 192.168.1.1
DHCP4.OPTION[6]:ip_address = 192.168.1.100
DHCP4.OPTION[7]:filename = pxelinux.0
DHCP4.OPTION[8]:requested_static_routes = 1
DHCP4.OPTION[9]:dhcp_server_identifier = 192.168.1.1
DHCP4.OPTION[10]:requested_nis_servers = 1
DHCP4.OPTION[11]:requested_time_offset = 1
DHCP4.OPTION[12]:broadcast_address = 192.168.1.255
DHCP4.OPTION[13]:requested_interface_mtu = 1
DHCP4.OPTION[14]:dhcp_rebinding_time = 37800
DHCP4.OPTION[15]:requested_domain_name_servers = 1
DHCP4.OPTION[16]:dhcp_message_type = 5
DHCP4.OPTION[17]:requested_broadcast_address = 1
DHCP4.OPTION[18]:routers = 192.168.1.1
DHCP4.OPTION[19]:dhcp_renewal_time = 21600
DHCP4.OPTION[20]:requested_domain_name = 1
DHCP4.OPTION[21]:domain_name = home.lan
DHCP4.OPTION[22]:requested_routers = 1
DHCP4.OPTION[23]:expiry = 1484850701
DHCP4.OPTION[24]:requested_wpad = 1
DHCP4.OPTION[25]:host_name = lzapx
DHCP4.OPTION[26]:requested_nis_domain = 1
DHCP4.OPTION[27]:requested_ms_classless_static_routes = 1
DHCP4.OPTION[28]:network_number = 192.168.1.0
DHCP4.OPTION[29]:requested_domain_search = 1
DHCP4.OPTION[30]:next_server = 192.168.1.1
DHCP4.OPTION[31]:requested_ntp_servers = 1
DHCP4.OPTION[32]:dhcp_lease_time = 43200
DHCP4.OPTION[33]:requested_host_name = 1

Let's simply report them all for each individual interface via facter.

Actions

Also available in: Atom PDF