The resolution of dns queries iptables

There are the following two lines
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT-p udp --sport 53 -j ACCEPT

There is a list of the current rules:
root@test:/home/testr# iptables -nL
Chain INPUT (policy DROP)
target prot opt source destination 
ACCEPT tcp -- 192.168.1.60 0.0.0.0/0 tcp dpt:22
ACCEPT tcp -- 192.168.1.67 0.0.0.0/0 tcp dpt:22
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmptype 8
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53
ACCEPT tcp -- 192.168.1.11 0.0.0.0/0 tcp dpt:443
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443

Chain FORWARD (policy DROP)
target prot opt source destination 

Chain OUTPUT (policy DROP)
target prot opt source destination 
ACCEPT tcp -- 0.0.0.0/0 192.168.1.60 tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:22
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmptype 8
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:53
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443

Have ping from kahororo I understand that DNS is not working, but don't understand why.
root@test:/etc/network/if-up.d# ping ya.ru
ping: unknown host ya.ru

We need to know why the rule isn't executed, though syntactically correct, or to know is used such a rule of your configurations. Thanks in advance.
October 2nd 19 at 17:00
3 answers
October 2nd 19 at 17:02
Solution
I'm sorry, just why is not clear.
I will leave here the solution and the explanation, if for someone it is also not obvious.
The correct way would be:
iptables -A INPUT -p udp --dport 53 -j ACCEPT
iptables -A OUTPUT-p udp --sport 53 --dport 1024:65535 -j ACCEPT

Because the DNS request from the client to the server goes to port 53, the response from the server to the client from port 53, but is returned to the customer at one of the ports in the range 1024:65535.
October 2nd 19 at 17:04
iptables -A INPUT -p udp -m udp --dport 53 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 53 --dport 1024:65535 -j ACCEPT
October 2nd 19 at 17:06
iptables -A OUTPUT-p udp --dport 53 -j ACCEPT

Find more questions by tags Iptables