Update NameServer.java

Was this given to us from the book or did you write this yourself?  If you did then fuck me, if not then Imma just copy it ok?