ui_newt: remove n variable from static ip
ui_newt: replace most of the validation logic for dns servers and search
domains with a function