vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/config.rb
#  Add a nameserver to the list of nameservers.
# 
#  Can take either a single String or an array of Strings.
#  The new nameservers are added at a higher priority.
Add a nameserver to the list of nameservers.
Can take either a single String or an array of Strings.
The new nameservers are added at a higher priority.
Add a nameserver to the list of nameservers . Can take either a single String or an array of Strings . The new nameservers are added at a higher priority .
def add_nameserver(ns)
      @configured = true
      if (ns.kind_of?String)
        ns=[ns]
      end
      check_ns(ns)
      ns.reverse_each do |n|
        if (!@nameserver.include?(n))
          self.nameserver=[n]+@nameserver
        end
      end
    end
def add_nameserver ( ns ) @configured = true if ( ns . kind_of? String ) ns = [ ns ] end check_ns ( ns ) ns . reverse_each do | n | if ( ! @nameserver . include? ( n ) ) self . nameserver = [ n ] + @nameserver end end end
Add a nameserver to the list of nameservers.
Add a nameserver to the list of nameservers .
ns
<not_specific>