diff --git a/src/hostinfo/ifconfig.py b/src/hostinfo/ifconfig.py
index 4f5d9f8b1a35683afba21e81a6bbbd77e91e5b06..24c83cdbc0d0c333aee1bffc7bd62fd938ed6806 100755
--- a/src/hostinfo/ifconfig.py
+++ b/src/hostinfo/ifconfig.py
@@ -19,7 +19,7 @@ def generate(tree, host):
                             s = subnet(tree, i.ip[0])
                         else:
                             s = i._static_[0]
-
+                        
                         config += "BOOTPROTO=none\n"
                         config += "IPADDR=%s\n" % i.ip[0]
                         if s and s.gateway[0] and s.gateway[0] != i.ip[0]:
@@ -30,6 +30,13 @@ def generate(tree, host):
                             config += "NETWORK=%s\n" % s.network[0]
                         if s and s.broadcast[0]:
                             config += "BROADCAST=%s\n" % s.broadcast[0]
+                        if s and s.name_servers[0]:
+                            ni = 0
+                            for n in re.split("[, ]+", s.name_servers[0]):
+                                ni += 1
+                                config += "DNS%d=%s\n" % (ni, n)
+                        if s and s.domain[0]:
+                            config += "DOMAIN=%s\n" % s.domain[0]
                     else:
                         config += "BOOTPROTO=dhcp\n"
                     result.append(("ifcfg-%s" % d, config))