The invention discloses a voice
domain name resolving method for a home gateway. The method comprises the following steps: initializing an array and setting null; creating
a domain name
system thread; inquiring a state mechanism, judging the state mechanism inquired by a current
domain name system, returning if inquiry is running, loading
a domain name to be inquired if inquiry is in a
null state, comparing with
a domain name in a
domain name system, judging whether the loaded domain name exists in the
domain name system or not, and giving an inquiry failure result if the loaded domain name does not exist in the
domain name system; if loaded domain name exists in the
domain name system, performing domain name resolving to obtain a corresponding IP (
Internet Protocol) address, loading the domain name and a corresponding
IP address thereof into a corresponding array, and changing the state mechanism to inquiry success; adding the successfully-inquired domain name and the corresponding
IP address thereof into a
database of the domain name system. In the method, domain name addresses are resolved by creating a thread, so that waste of resources is reduced effectively, real addresses needing domain name resolving can be obtained rapidly and kept, and high efficiency, high instantaneity and high accuracy are achieved.