cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2178
Views
0
Helpful
4
Replies

SG300-10 - DHCP Server did not update DNS (bind9) records

RainerRDE
Level 1
Level 1

Hi Community,

my SG300 is configured in L3 Mode in my Homelab and the DHCP Server feature is enabled.

The switch is running on Firmware Version 1.4.1.3.

I've configured per VLAN one Network Pool.

The Default Router IP Address (Option 3), the DNS Server IP (Option 6) and the Domain Name (Option15) are also configured.

DHCP is running well without problems.

Clients get their IP Configuration inclusive Router, DNS and Domain Name information.

 

As DNS Server I've configured a bind9 server under raspbian wheezy.

The bind9 is configured to allow dynamic updates and DNS works like expected.

 

Manually by using NSUPDATE I can make dynamic updates to the bind9 zones from my DHCP clients.

But this is not what I want.

I want that the SG300 DHCP Server makes the dynamic updates to the DNS zones.

 

Would be the DHCP Option 81 (Client FQDN) helpful?

 

Any idea is welcome. :-)

 

Looking forward to hearing from you because this makes me crazy.

 

Best regards,

Rainer.

 

 

 

 

1 Accepted Solution

Accepted Solutions

Sorry for the delay in response Rainer.  I was trying to configure this in my lab and was getting unexpected GUI input results that did not affect the packets at all.  Checked with my contacts and they let me know that option 81 is not supported on this switch.  Since the client sends to the server on how to update DNS records, the switch does not support this dynamic configuration.

Refering to the data sheet for the SG300's, these are the listed supported options:

DHCP (Options 12, 66, 67, 82, 129, and 150)

Here is the link for the data sheet. 

http://www.cisco.com/c/en/us/products/collateral/switches/small-business-smart-switches/data_sheet_c78-610061.html

Sorry about the information, but it is not a supported option. 

 

James

 

View solution in original post

4 Replies 4

jbattist
Level 1
Level 1

Hello Rainer,

       Option 81 with the flag set to 3 or 1 from the client would be a good test.  Not really sure without testing it.

Hello jbattist,

I'm not able to set the option in the SG300.

 

I've looked at RFC 4702 for the format of the client FQDN option but I don't understand how to setup this in the SG300.

RFC 4702 describe the format like below:

        Code   Len    Flags  RCODE1 RCODE2   Domain Name
       +------+------+------+------+------+------+--
       |  81  |   n  |      |      |      |       ...
       +------+------+------+------+------+------+--
   The format of the 1-octet Flags field is:

        0 1 2 3 4 5 6 7
       +-+-+-+-+-+-+-+-+
       |  MBZ  |N|E|O|S|
       +-+-+-+-+-+-+-+-+

For the ascii string should be: 

  • MBZ : 0000
  • N: 0
  • E: 1
  • O: 1
  • S: 1
  • RCODE1: 255
  • RCODE2: 255

ASCII : 0000 0111 255 255 (without the blanks)

Hex: 30 30 30 30 30 31 31 31 32 35 35 32 35 35 (without the blanks)

In the SG300 GUI I can set the hex value for the option and a description.

But if I check the DHCP from a client I don't see the option:

mac:~ me$ ipconfig getpacket en0

op = BOOTREPLY

htype = 1

flags = 0

hlen = 6

hops = 0

xid = 0x15f56166

secs = 0

ciaddr = 0.0.0.0

yiaddr = 192.168.110.10

siaddr = 0.0.0.0

giaddr = 0.0.0.0

chaddr = XX:XX:XX:XX:XX:XX

sname = 

file = 

options:

Options count is 11

dhcp_message_type (uint8): ACK 0x5

server_identifier (ip): 192.168.110.1

lease_time (uint32): 0x15180

renewal_t1_time_value (uint32): 0xa8c0

rebinding_t2_time_value (uint32): 0x12750

subnet_mask (ip): 255.255.255.0

router (ip_mult): {192.168.110.1}

domain_name_server (ip_mult): {192.168.100.2}

domain_name (string): homelab.local

nb_over_tcpip_node_type (uint8): 0x8

end (none):

 

mac:~ me$ ipconfig getoption en0 81

mac:~ me$

 

Do you have an idea or an example of the hex value for me?

 

Best regards,

Rainer.

 

Sorry for the delay in response Rainer.  I was trying to configure this in my lab and was getting unexpected GUI input results that did not affect the packets at all.  Checked with my contacts and they let me know that option 81 is not supported on this switch.  Since the client sends to the server on how to update DNS records, the switch does not support this dynamic configuration.

Refering to the data sheet for the SG300's, these are the listed supported options:

DHCP (Options 12, 66, 67, 82, 129, and 150)

Here is the link for the data sheet. 

http://www.cisco.com/c/en/us/products/collateral/switches/small-business-smart-switches/data_sheet_c78-610061.html

Sorry about the information, but it is not a supported option. 

 

James

 

Hi James,

don't worry about delay. 

Thanks for the response.

I will setup a DHCP server on a linux box to get the dynamic registration running.

Best regards,

Rainer.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Switch products supported in this community
Cisco Business Product Family
  • CBS110
  • CBS220
  • CBS250
  • CBS350
Cisco Switching Product Family
  • 110
  • 200
  • 220
  • 250
  • 300
  • 350
  • 350X
  • 550X